Commit dfc7ee22a38f8696edf466659a66db2077b3a177
1 parent
b3330279
增加实体类
Showing
2 changed files
with
72 additions
and
0 deletions
itcast-auth/itcast-auth-entity/src/main/java/com/itheima/authority/dto/auth/HierarchyDTO.java
0 → 100644
| 1 | +package com.itheima.authority.dto.auth; | ||
| 2 | + | ||
| 3 | +import com.itheima.authority.enumeration.auth.Sex; | ||
| 4 | +import io.swagger.annotations.ApiModel; | ||
| 5 | +import io.swagger.annotations.ApiModelProperty; | ||
| 6 | +import lombok.Data; | ||
| 7 | + | ||
| 8 | +import java.io.Serializable; | ||
| 9 | +import java.util.List; | ||
| 10 | + | ||
| 11 | +/** | ||
| 12 | + * <p> | ||
| 13 | + * 实体类 | ||
| 14 | + * 用户层次结构 | ||
| 15 | + * </p> | ||
| 16 | + */ | ||
| 17 | +@Data | ||
| 18 | +@ApiModel(value = "HierarchyDTO", description = "用户层次结构") | ||
| 19 | +public class HierarchyDTO implements Serializable { | ||
| 20 | + | ||
| 21 | + private static final long serialVersionUID = 1L; | ||
| 22 | + | ||
| 23 | + private boolean expand = true; | ||
| 24 | + | ||
| 25 | + @ApiModelProperty(value = "自身节点") | ||
| 26 | + private boolean self; | ||
| 27 | + | ||
| 28 | + @ApiModelProperty(value = "上级领导") | ||
| 29 | + private Long superior; | ||
| 30 | + | ||
| 31 | + @ApiModelProperty(value = "账号") | ||
| 32 | + private String account; | ||
| 33 | + | ||
| 34 | + @ApiModelProperty(value = "姓名") | ||
| 35 | + private String name; | ||
| 36 | + | ||
| 37 | + @ApiModelProperty(value = "组织ID") | ||
| 38 | + private Long orgId; | ||
| 39 | + | ||
| 40 | + @ApiModelProperty(value = "组织名称") | ||
| 41 | + private String orgName; | ||
| 42 | + | ||
| 43 | + @ApiModelProperty(value = "岗位ID") | ||
| 44 | + private Long stationId; | ||
| 45 | + | ||
| 46 | + @ApiModelProperty(value = "岗位名称") | ||
| 47 | + private String stationName; | ||
| 48 | + | ||
| 49 | + @ApiModelProperty(value = "邮箱") | ||
| 50 | + private String email; | ||
| 51 | + | ||
| 52 | + @ApiModelProperty(value = "手机") | ||
| 53 | + private String mobile; | ||
| 54 | + | ||
| 55 | + @ApiModelProperty(value = "性别 Sex{W:女;M:男;N:未知}") | ||
| 56 | + private Sex sex; | ||
| 57 | + | ||
| 58 | + @ApiModelProperty(value = "启用状态 1启用 0禁用") | ||
| 59 | + private Boolean status; | ||
| 60 | + | ||
| 61 | + @ApiModelProperty(value = "头像") | ||
| 62 | + private String avatar; | ||
| 63 | + | ||
| 64 | + @ApiModelProperty(value = "工作描述") | ||
| 65 | + private String workDescribe; | ||
| 66 | + | ||
| 67 | + private List<HierarchyDTO> children; | ||
| 68 | +} |
itcast-auth/itcast-auth-entity/src/main/java/com/itheima/authority/entity/auth/User.java
| @@ -175,4 +175,8 @@ public class User extends Entity<Long> { | @@ -175,4 +175,8 @@ public class User extends Entity<Long> { | ||
| 175 | @ApiModelProperty(value = "角色名称集合") | 175 | @ApiModelProperty(value = "角色名称集合") |
| 176 | @TableField(exist = false) | 176 | @TableField(exist = false) |
| 177 | private List<String> roleNames; | 177 | private List<String> roleNames; |
| 178 | + | ||
| 179 | + @ApiModelProperty(value = "用户组名称") | ||
| 180 | + @TableField(exist = false) | ||
| 181 | + private List<String> userGroupsNames; | ||
| 178 | } | 182 | } |