dataLists(new KefuLangLists()); } /** * @notes 添加话术 * @return \think\response\Json * @author 段誉 * @date 2022/3/8 18:53 */ public function add() { $params = (new KefuLangValidate())->post()->goCheck('add'); (new KefuLangLogic())->add($params); return $this->success('添加成功',[],1,1); } /** * @notes 编辑话术 * @return \think\response\Json * @author 段誉 * @date 2022/3/8 18:53 */ public function edit() { $params = (new KefuLangValidate())->post()->goCheck('edit'); KefuLangLogic::edit($params); return $this->success('编辑成功', [], 1, 1); } /** * @notes 删除话术 * @return \think\response\Json * @author 段誉 * @date 2022/3/8 18:53 */ public function del() { $params = (new KefuLangValidate())->post()->goCheck('del'); KefuLangLogic::del($params['id']); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取话术详情 * @return \think\response\Json * @author 段誉 * @date 2022/3/8 18:55 */ public function detail() { $params = (new KefuLangValidate())->goCheck('detail'); $result = KefuLangLogic::detail($params['id']); return $this->success('获取成功', $result); } }