['title'] ]; } /** * @notes 获取话术列表 * @return array * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author 段誉 * @date 2022/3/14 14:53 */ public function lists(): array { $lists = KefuLang::where($this->searchWhere) ->limit($this->limitOffset, $this->limitLength) ->order('sort') ->select() ->toArray(); return $lists; } /** * @notes 记录数量 * @return int * @author 段誉 * @date 2022/3/14 14:53 */ public function count(): int { return KefuLang::where($this->searchWhere)->count(); } }