Selaa lähdekoodia

fix: 添加用户角色

weijin 4 vuotta sitten
vanhempi
commit
cca122b346

+ 1 - 1
README.md

@@ -1,7 +1,7 @@
 # seecoder-eval
 backend repo of seecoder-eval system
 
-[API documentation](http://eval-server-8080.seec.seecoder.cn/swagger-ui/index.html)
+[API documentation](https://eval-server.seec.seecoder.cn/swagger-ui/index.html)
 
 
 

+ 8 - 7
src/main/java/com/nju/edu/eval/publicdatas/enums/UserRole.java

@@ -5,11 +5,12 @@ package com.nju.edu.eval.publicdatas.enums;
  */
 
 public enum UserRole {
-    /**
-     * 老师,学生,HR,网站管理员
-     */
-    TEACHER,
-    STUDENT,
-    HR,
-    ADMIN
+
+    TEACHER, //老师
+    STUDENT, //学生
+    HR, //HR
+    ADMIN, //网站管理员
+    STAFF, //员工
+    SEEC, //Seecoder开发人员
+    SEECX //Seecoder开发人员X
 }

+ 2 - 2
src/main/resources/application.yml

@@ -1,3 +1,3 @@
 spring:
-  profils:
-    active: prod
+  profiles:
+    active: test