|
@@ -57,7 +57,7 @@ public class ProjectController {
|
|
|
PersonnelVO user = cacheUtils.getLoginUserPersonnel(loginUtils.getId());
|
|
|
return projectService.add(project);
|
|
|
}
|
|
|
- @Permission()
|
|
|
+ @Permission(roles = {2})
|
|
|
@checkAuth(FunId = "/workspace/project/modify")
|
|
|
@PostMapping("edit")
|
|
|
@Operation(summary = "编辑专题库")
|
|
@@ -65,7 +65,7 @@ public class ProjectController {
|
|
|
return projectService.edit(project);
|
|
|
}
|
|
|
|
|
|
- @Permission()
|
|
|
+ @Permission(roles = {2})
|
|
|
@PostMapping("delete")
|
|
|
@checkAuth(FunId = "/workspace/project/delete")
|
|
|
@Operation(summary = "删除专题库")
|
|
@@ -94,7 +94,6 @@ public class ProjectController {
|
|
|
return Response.success(projectService.getProjectStatusTotal());
|
|
|
}
|
|
|
|
|
|
- @checkAuth(FunId = "/project/type/total")
|
|
|
@GetMapping("/type/total")
|
|
|
@Operation(summary = "专题库调查类型统计数据")
|
|
|
public String getProjectTypeTotal(String scenario) {
|
|
@@ -107,7 +106,7 @@ public class ProjectController {
|
|
|
return Response.success();
|
|
|
}
|
|
|
|
|
|
- @Permission()
|
|
|
+ @Permission(roles = {2})
|
|
|
@PostMapping("share")
|
|
|
@checkAuth(FunId = "/workspace/project/project_share")
|
|
|
@Operation(summary = "分享专题库")
|