fix: 修复用户管理/角色管理编辑及状态变更问题 (#53)

修复用户管理修改任意信息,导致密码二次加密修改造成无法登录的问题

补充用户管理、权限管理状态变更后的逻辑:
1、禁用的角色不再允许分配给用户
2、已经分配给用户的角色不允许禁用
3、禁用用户后将清理该用户所有登录token
This commit is contained in:
kils
2024-04-25 18:00:38 +08:00
committed by GitHub
parent 70ed667c16
commit abf1e651e9
7 changed files with 56 additions and 3 deletions

View File

@@ -51,6 +51,12 @@ public class LabelValueResp<T> implements Serializable {
@Schema(description = "", example = "1")
private T value;
/**
* 是否禁用
*/
@Schema(description = "是否禁用", example = "false")
private Boolean disabled;
/**
* 颜色
*/
@@ -68,4 +74,10 @@ public class LabelValueResp<T> implements Serializable {
this.value = value;
this.color = color;
}
public LabelValueResp(String label, T value, Boolean disabled) {
this.label = label;
this.value = value;
this.disabled = disabled;
}
}