dataLists(new SupervisionPlanningLists()); } /** * @notes 添加工程监理--监理规划 * @return \think\response\Json * @author likeadmin * @date 2024/02/23 16:45 */ public function add() { $params = (new SupervisionPlanningValidate())->post()->goCheck('add'); $result = SupervisionPlanningLogic::add($params,$this->adminId); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(SupervisionPlanningLogic::getError()); } /** * @notes 编辑工程监理--监理规划 * @return \think\response\Json * @author likeadmin * @date 2024/02/23 16:45 */ public function edit() { $params = (new SupervisionPlanningValidate())->post()->goCheck('edit'); $result = SupervisionPlanningLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(SupervisionPlanningLogic::getError()); } /** * @notes 删除工程监理--监理规划 * @return \think\response\Json * @author likeadmin * @date 2024/02/23 16:45 */ public function delete() { $params = (new SupervisionPlanningValidate())->post()->goCheck('delete'); SupervisionPlanningLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取工程监理--监理规划详情 * @return \think\response\Json * @author likeadmin * @date 2024/02/23 16:45 */ public function detail() { $params = (new SupervisionPlanningValidate())->goCheck('detail'); $result = SupervisionPlanningLogic::detail($params); return $this->data($result); } }