39 lines
671 B
PHP
Executable File
39 lines
671 B
PHP
Executable File
<?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);
|
|
}
|
|
|
|
}
|