dataLists(new ManageAcceptDocLists()); } /** * @notes 添加项目管理--收文管理 * @return \think\response\Json * @author likeadmin * @date 2024/03/07 16:46 */ public function add() { $params = (new ManageAcceptDocValidate())->post()->goCheck('add'); $result = ManageAcceptDocLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(ManageAcceptDocLogic::getError()); } /** * @notes 编辑项目管理--收文管理 * @return \think\response\Json * @author likeadmin * @date 2024/03/07 16:46 */ public function edit() { $params = (new ManageAcceptDocValidate())->post()->goCheck('edit'); $result = ManageAcceptDocLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(ManageAcceptDocLogic::getError()); } /** * @notes 删除项目管理--收文管理 * @return \think\response\Json * @author likeadmin * @date 2024/03/07 16:46 */ public function delete() { $params = (new ManageAcceptDocValidate())->post()->goCheck('delete'); ManageAcceptDocLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取项目管理--收文管理详情 * @return \think\response\Json * @author likeadmin * @date 2024/03/07 16:46 */ public function detail() { $params = (new ManageAcceptDocValidate())->goCheck('detail'); $result = ManageAcceptDocLogic::detail($params); return $this->data($result); } }