dataLists(new ProjectRoleSetLists()); } /** * @notes 添加项目角色设置 * @return \think\response\Json * @author likeadmin * @date 2023/12/13 14:23 */ public function add() { $params = (new ProjectRoleSetValidate())->post()->goCheck('add'); $result = ProjectRoleSetLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(ProjectRoleSetLogic::getError()); } /** * @notes 编辑项目角色设置 * @return \think\response\Json * @author likeadmin * @date 2023/12/13 14:23 */ public function edit() { $params = (new ProjectRoleSetValidate())->post()->goCheck('edit'); $result = ProjectRoleSetLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(ProjectRoleSetLogic::getError()); } /** * @notes 删除项目角色设置 * @return \think\response\Json * @author likeadmin * @date 2023/12/13 14:23 */ public function delete() { $params = (new ProjectRoleSetValidate())->post()->goCheck('delete'); ProjectRoleSetLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取项目角色设置详情 * @return \think\response\Json * @author likeadmin * @date 2023/12/13 14:23 */ public function detail() { $params = (new ProjectRoleSetValidate())->goCheck('detail'); $result = ProjectRoleSetLogic::detail($params); return $this->data($result); } }