tuonina преди 5 години
родител
ревизия
46e0253645

+ 19 - 1
tuon-core/src/main/java/cn/tonyandmoney/tuon/core/user/IDept.java

@@ -1,5 +1,7 @@
 package cn.tonyandmoney.tuon.core.user;
 
+import com.fasterxml.jackson.annotation.JsonIgnore;
+
 /**
  * @Classname IDept
  * @Description TODO
@@ -7,8 +9,24 @@ package cn.tonyandmoney.tuon.core.user;
  * @Created by Administrator
  */
 public interface IDept {
+    /**
+     *
+     */
+    @JsonIgnore
+    String PREFIX="TUON_";
 
     Long getId();
-    String getPath();
+
+    /**
+     * 部门编码,部门编码按照一定的规则进行,可提现部门的层级结构
+     * @return 部门编码
+     */
+    String getCode();
     String getName();
+
+    /**
+     * 上级部门id,默认为0
+     * @return 父级部门id
+     */
+    Long getParentId();
 }

+ 7 - 2
tuon-core/src/main/java/cn/tonyandmoney/tuon/core/user/IRole.java

@@ -2,7 +2,7 @@ package cn.tonyandmoney.tuon.core.user;
 
 /**
  * @Classname IRole
- * @Description TODO
+ * @Description 角色是没有父级子级结构的
  * @Date 2019/8/25 20:07
  * @Created by Administrator
  */
@@ -10,5 +10,10 @@ public interface IRole {
 
     Long getId();
     String getName();
-    String getPath();
+
+    /**
+     * 角色编码
+     * @return 角色编码
+     */
+    String getCode();
 }

+ 11 - 0
tuon-core/src/main/java/cn/tonyandmoney/tuon/core/user/IUerGroup.java

@@ -0,0 +1,11 @@
+package cn.tonyandmoney.tuon.core.user;
+
+/**
+ * 用户组
+ */
+public interface IUerGroup {
+
+    String getName();
+
+    Long getId();
+}

+ 2 - 0
tuon-core/src/main/java/cn/tonyandmoney/tuon/core/user/IUser.java

@@ -35,4 +35,6 @@ public interface IUser {
 
     List<IRole> getRoles();
 
+    List<String> getTags();
+
 }