mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-25 06:57:15 +08:00
fix: 修复用户管理/角色管理编辑及状态变更问题 (#53)
修复用户管理修改任意信息,导致密码二次加密修改造成无法登录的问题 补充用户管理、权限管理状态变更后的逻辑: 1、禁用的角色不再允许分配给用户 2、已经分配给用户的角色不允许禁用 3、禁用用户后将清理该用户所有登录token
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user