feat: 用户会话后端代码.
This commit is contained in:
@@ -46,11 +46,11 @@ public enum ErrorCode implements CodeInfo {
|
||||
|
||||
// -------------------- 自定义 - 业务 --------------------
|
||||
|
||||
OTHER_DEVICE_LOGIN(700, "该账号于 {} 已在其他设备登录 {}({})"),
|
||||
USER_DISABLED(700, "当前用户已禁用"),
|
||||
|
||||
USER_DISABLED(701, "当前用户已禁用"),
|
||||
USER_LOCKED(701, "当前用户已被锁定"),
|
||||
|
||||
USER_LOCKED(702, "当前用户已被锁定"),
|
||||
OTHER_DEVICE_LOGIN(702, "该账号于 {} 已在其他设备登录 {}({})"),
|
||||
|
||||
// -------------------- 自定义 - 通用 --------------------
|
||||
|
||||
|
||||
@@ -31,6 +31,9 @@ public class LoginUser {
|
||||
@Schema(description = "头像地址")
|
||||
private String avatar;
|
||||
|
||||
@Schema(description = "登录时间戳")
|
||||
private Long timestamp;
|
||||
|
||||
@Schema(description = "角色")
|
||||
private List<String> roles;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user