lrf 8 月之前
父节点
当前提交
a33f0b3676
共有 2 个文件被更改,包括 27 次插入3 次删除
  1. 5 0
      src/main/java/com/free/entity/system/Role.java
  2. 22 3
      src/main/resources/db/role.json

+ 5 - 0
src/main/java/com/free/entity/system/Role.java

@@ -44,4 +44,9 @@ public class Role extends BaseEntity {
   @TableField(value = "is_default")
   @ApiModelProperty("是否是默认角色")
   private String is_default;
+
+  @Column(comment = "使用对象:0-管理员;1-客服人员;2-使用用户")
+  @TableField(value = "type")
+  @ApiModelProperty("使用对象")
+  private String type;
 }

+ 22 - 3
src/main/resources/db/role.json

@@ -1,12 +1,31 @@
 [
   {
     "name": "管理员",
-    "menu": ["home", "system", "system_menus", "system_dict", "system_func", "platform", "platform_basic", "platform_role", "users", "users_admin", "users_customer", "users_user", "question", "apply", "dialogue", "center"],
-    "is_default": "0"
+    "menu": [
+      "home",
+      "system",
+      "system_menus",
+      "system_dict",
+      "system_func",
+      "platform",
+      "platform_basic",
+      "platform_role",
+      "users",
+      "users_admin",
+      "users_customer",
+      "users_user",
+      "question",
+      "apply",
+      "dialogue",
+      "center"
+    ],
+    "is_default": "0",
+    "type": "0"
   },
   {
     "name": "客服人员",
     "menu": ["home", "apply", "dialogue", "center"],
-    "is_default": "0"
+    "is_default": "0",
+    "type": "1"
   }
 ]