dataLists(new SupervisionCompanyCheckLists()); } /** * @notes 添加工程监理--公司检查 * @return \think\response\Json * @author likeadmin * @date 2024/03/05 11:57 */ public function add() { $params = (new SupervisionCompanyCheckValidate())->post()->goCheck('add'); $result = SupervisionCompanyCheckLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(SupervisionCompanyCheckLogic::getError()); } /** * @notes 编辑工程监理--公司检查 * @return \think\response\Json * @author likeadmin * @date 2024/03/05 11:57 */ public function edit() { $params = (new SupervisionCompanyCheckValidate())->post()->goCheck('edit'); $result = SupervisionCompanyCheckLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(SupervisionCompanyCheckLogic::getError()); } /** * @notes 回复工程监理--公司检查 * @return \think\response\Json * @author likeadmin * @date 2024/03/05 11:57 */ public function reply() { $params = (new SupervisionCompanyCheckValidate())->post()->goCheck('reply'); $result = SupervisionCompanyCheckLogic::reply($params); if (true === $result) { return $this->success('回复成功', [], 1, 1); } return $this->fail(SupervisionCompanyCheckLogic::getError()); } /** * @notes 删除工程监理--公司检查 * @return \think\response\Json * @author likeadmin * @date 2024/03/05 11:57 */ public function delete() { $params = (new SupervisionCompanyCheckValidate())->post()->goCheck('delete'); SupervisionCompanyCheckLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取工程监理--公司检查详情 * @return \think\response\Json * @author likeadmin * @date 2024/03/05 11:57 */ public function detail() { $params = (new SupervisionCompanyCheckValidate())->goCheck('detail'); $result = SupervisionCompanyCheckLogic::detail($params); return $this->data($result); } }