From 2873f1cd6ea6caac062740e05994a1f0a880ffde Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期二, 12 三月 2024 11:27:20 +0800 Subject: [PATCH] 一个用户只能是一个部门的管理员、创建随机试卷的时候人员只能选当前部门的人,试卷增加部门id --- src/main/java/com/mindskip/xzs/domain/enums/RoleEnum.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/mindskip/xzs/domain/enums/RoleEnum.java b/src/main/java/com/mindskip/xzs/domain/enums/RoleEnum.java index a5fa365..eddee89 100644 --- a/src/main/java/com/mindskip/xzs/domain/enums/RoleEnum.java +++ b/src/main/java/com/mindskip/xzs/domain/enums/RoleEnum.java @@ -7,7 +7,8 @@ public enum RoleEnum { STUDENT(1, "STUDENT"), - ADMIN(3, "ADMIN"); + ADMIN(3, "ADMIN"), + DEPT_ADMIN(-1, "DEPT_ADMIN"); int code; String name; -- Gitblit v1.8.0