TRX vor 1 Jahr
Ursprung
Commit
fcf348d759

+ 9 - 0
FullCardServer/src/main/java/com/zhongshu/card/server/core/controller/org/RoleController.java

@@ -32,6 +32,9 @@ public class RoleController {
     @ResourceAuth(value = "roleSave", type = AuthType.Platform, remark = "角色管理_添加编辑角色_2_Button")
     @ResourceAuth(value = "roleSave", type = AuthType.Project, remark = "角色管理_添加编辑角色_2_Button")
     @ResourceAuth(value = "roleSave", type = AuthType.School, remark = "角色管理_添加编辑角色_2_Button")
+    @ResourceAuth(value = AuthConstant.SuperAdmin, type = AuthType.Platform, remark = "")
+    @ResourceAuth(value = AuthConstant.Admin, type = AuthType.Project, remark = "")
+    @ResourceAuth(value = AuthConstant.Admin, type = AuthType.School, remark = "")
     @ResourceAuth(value = "user", type = AuthType.User)
     @Operation(summary = "添加-编辑角色", description = "添加-编辑角色")
     @RequestMapping(value = "addRole", method = {RequestMethod.POST})
@@ -73,6 +76,9 @@ public class RoleController {
     @ResourceAuth(value = "roleDelete", type = AuthType.Platform, remark = "角色管理_删除角色_3_Button")
     @ResourceAuth(value = "roleDelete", type = AuthType.Project, remark = "角色管理_删除角色_3_Button")
     @ResourceAuth(value = "roleDelete", type = AuthType.School, remark = "角色管理_删除角色_3_Button")
+    @ResourceAuth(value = AuthConstant.SuperAdmin, type = AuthType.Platform, remark = "")
+    @ResourceAuth(value = AuthConstant.Admin, type = AuthType.Project, remark = "")
+    @ResourceAuth(value = AuthConstant.Admin, type = AuthType.School, remark = "")
     @ResourceAuth(value = "user", type = AuthType.User)
     @Operation(summary = "删除角色", description = "删除角色")
     @RequestMapping(value = "deleteRole", method = {RequestMethod.POST})
@@ -83,6 +89,9 @@ public class RoleController {
     @ResourceAuth(value = "roleDetail", type = AuthType.Platform, remark = "角色管理_角色详情_4_Button")
     @ResourceAuth(value = "roleDetail", type = AuthType.Project, remark = "角色管理_角色详情_4_Button")
     @ResourceAuth(value = "roleDetail", type = AuthType.School, remark = "角色管理_角色详情_4_Button")
+    @ResourceAuth(value = AuthConstant.SuperAdmin, type = AuthType.Platform, remark = "")
+    @ResourceAuth(value = AuthConstant.Admin, type = AuthType.Project, remark = "")
+    @ResourceAuth(value = AuthConstant.Admin, type = AuthType.School, remark = "")
     @ResourceAuth(value = "user", type = AuthType.User)
     @Operation(summary = "角色详情", description = "角色详情")
     @RequestMapping(value = "getRole", method = {RequestMethod.POST})