@@ -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();
}
@@ -2,7 +2,7 @@ package cn.tonyandmoney.tuon.core.user;
* @Classname IRole
- * @Description TODO
+ * @Description 角色是没有父级子级结构的
* @Date 2019/8/25 20:07
@@ -10,5 +10,10 @@ public interface IRole {
+ * 角色编码
+ * @return 角色编码
@@ -0,0 +1,11 @@
+package cn.tonyandmoney.tuon.core.user;
+/**
+ * 用户组
+public interface IUerGroup {
+ String getName();
+ Long getId();
+}
@@ -35,4 +35,6 @@ public interface IUser {
List<IRole> getRoles();
+ List<String> getTags();