dataLists(new SupervisionInspectionLists()); } /** * @notes 添加工程监理--巡视登记 * @return \think\response\Json * @author likeadmin * @date 2024/02/26 17:18 */ public function add() { $params = (new SupervisionInspectionValidate())->post()->goCheck('add'); $result = SupervisionInspectionLogic::add($params,$this->adminId); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(SupervisionInspectionLogic::getError()); } /** * @notes 编辑工程监理--巡视登记 * @return \think\response\Json * @author likeadmin * @date 2024/02/26 17:18 */ public function edit() { $params = (new SupervisionInspectionValidate())->post()->goCheck('edit'); $result = SupervisionInspectionLogic::edit($params,$this->adminId); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(SupervisionInspectionLogic::getError()); } /** * @notes 删除工程监理--巡视登记 * @return \think\response\Json * @author likeadmin * @date 2024/02/26 17:18 */ public function delete() { $params = (new SupervisionInspectionValidate())->post()->goCheck('delete'); $result = SupervisionInspectionLogic::delete($params); if (true === $result) { return $this->success('删除成功', [], 1, 1); } return $this->fail(SupervisionInspectionLogic::getError()); } /** * @notes 获取工程监理--巡视登记详情 * @return \think\response\Json * @author likeadmin * @date 2024/02/26 17:18 */ public function detail() { $params = (new SupervisionInspectionValidate())->goCheck('detail'); $result = SupervisionInspectionLogic::detail($params); return $this->data($result); } }