dataLists(new SupervisionSideStationProblemLists()); } /** * @notes 添加工程监理--旁站问题 * @return \think\response\Json * @author likeadmin * @date 2024/02/27 13:58 */ public function add() { $params = (new SupervisionSideStationProblemValidate())->post()->goCheck('add'); $result = SupervisionSideStationProblemLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(SupervisionSideStationProblemLogic::getError()); } /** * @notes 编辑工程监理--旁站问题 * @return \think\response\Json * @author likeadmin * @date 2024/02/27 13:58 */ public function edit() { $params = (new SupervisionSideStationProblemValidate())->post()->goCheck('edit'); $result = SupervisionSideStationProblemLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(SupervisionSideStationProblemLogic::getError()); } /** * @notes 删除工程监理--旁站问题 * @return \think\response\Json * @author likeadmin * @date 2024/02/27 13:58 */ public function delete() { $params = (new SupervisionSideStationProblemValidate())->post()->goCheck('delete'); SupervisionSideStationProblemLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取工程监理--旁站问题详情 * @return \think\response\Json * @author likeadmin * @date 2024/02/27 13:58 */ public function detail() { $params = (new SupervisionSideStationProblemValidate())->goCheck('detail'); $result = SupervisionSideStationProblemLogic::detail($params); return $this->data($result); } }