增加 Tenant Redis 的实现

This commit is contained in:
YunaiV
2021-12-06 10:18:36 +08:00
parent 1ce2c09f47
commit df9b06843f
9 changed files with 117 additions and 16 deletions

View File

@ -28,10 +28,6 @@ public class LoginUser implements UserDetails {
* 关联 {@link UserTypeEnum}
*/
private Integer userType;
/**
* 部门编号
*/
private Long deptId;
/**
* 角色编号数组
*/
@ -53,22 +49,28 @@ public class LoginUser implements UserDetails {
* 状态
*/
private Integer status;
/**
* 租户编号
*/
private Long tenantId;
// ========== UserTypeEnum.ADMIN 独有字段 ==========
// TODO 芋艿:可以通过定义一个 Map<String, String> exts 的方式,去除管理员的字段。不过这样会导致系统比较复杂,所以暂时不去掉先;
/**
* 部门编号
*/
private Long deptId;
/**
* 所属岗位
*/
private Set<Long> postIds;
/**
* group 目前指岗位代替
*/
// TODO jason这个字段改成 postCodes 明确更好哈
private List<String> groups;
// TODO @芋艿:怎么去掉 deptId
@Override
@JsonIgnore// 避免序列化
public String getPassword() {