初始化代码
This commit is contained in:
38
app/im/model/ImSystemReply.php
Normal file
38
app/im/model/ImSystemReply.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
namespace app\im\model;
|
||||
|
||||
use app\BaseModel;
|
||||
|
||||
class ImReplyType extends BaseModel
|
||||
{
|
||||
//定义表名称
|
||||
protected $name = 'longbing_card_reply_type';
|
||||
|
||||
//创建话术
|
||||
public function createReply($data)
|
||||
{
|
||||
return $this->createRow($data);
|
||||
}
|
||||
//更新话术
|
||||
public function updateReply($filter ,$data)
|
||||
{
|
||||
return $this->updateRow($filter ,$data);
|
||||
}
|
||||
|
||||
//获取话术列表
|
||||
public function listReply($filter)
|
||||
{
|
||||
$filter['deleted'] = 0;
|
||||
$result = $this->where($filter)
|
||||
->select();
|
||||
if(!empty($result)) $result = $result->toArray();
|
||||
return $result;
|
||||
}
|
||||
|
||||
//删除话术
|
||||
public function delReply($filter)
|
||||
{
|
||||
return $this->deleteRow($filter);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user