dataLists(new ProjectStakeholderLists()); } /** * @notes 添加项目干系人 * @return \think\response\Json * @author likeadmin * @date 2023/12/15 11:20 */ public function add() { $params = (new ProjectStakeholderValidate())->post()->goCheck('add'); $result = ProjectStakeholderLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(ProjectStakeholderLogic::getError()); } /** * @notes 编辑项目干系人 * @return \think\response\Json * @author likeadmin * @date 2023/12/15 11:20 */ public function edit() { $params = (new ProjectStakeholderValidate())->post()->goCheck('edit'); $result = ProjectStakeholderLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(ProjectStakeholderLogic::getError()); } /** * @notes 删除项目干系人 * @return \think\response\Json * @author likeadmin * @date 2023/12/15 11:20 */ public function delete() { $params = (new ProjectStakeholderValidate())->post()->goCheck('delete'); ProjectStakeholderLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取项目干系人详情 * @return \think\response\Json * @author likeadmin * @date 2023/12/15 11:20 */ public function detail() { $params = (new ProjectStakeholderValidate())->goCheck('detail'); $result = ProjectStakeholderLogic::detail($params); return $this->data($result); } }