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