dataLists(new CustomerDemandSolutionLists()); } /** * @notes 添加解决方案 * @return \think\response\Json * @author likeadmin * @date 2023/11/24 21:32 */ public function add() { $params = (new CustomerDemandSolutionValidate())->post()->goCheck('add'); halt($params); $result = CustomerDemandSolutionLogic::add($params,$this->adminId); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(CustomerDemandSolutionLogic::getError()); } /** * @notes 编辑解决方案 * @return \think\response\Json * @author likeadmin * @date 2023/11/24 21:32 */ public function edit() { $params = (new CustomerDemandSolutionValidate())->post()->goCheck('edit'); $result = CustomerDemandSolutionLogic::edit($params,$this->adminId); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(CustomerDemandSolutionLogic::getError()); } /** * @notes 删除解决方案 * @return \think\response\Json * @author likeadmin * @date 2023/11/24 21:32 */ public function delete() { $params = (new CustomerDemandSolutionValidate())->post()->goCheck('delete'); CustomerDemandSolutionLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取解决方案详情 * @return \think\response\Json * @author likeadmin * @date 2023/11/24 21:32 */ public function detail() { $params = (new CustomerDemandSolutionValidate())->goCheck('detail'); $result = CustomerDemandSolutionLogic::detail($params); return $this->data($result); } }