feat: 用户会话后端代码.

This commit is contained in:
lijiahangmax
2023-11-01 01:48:07 +08:00
parent 0dfddf68ca
commit cfcb5cb7a8
19 changed files with 292 additions and 50 deletions

View File

@@ -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, "该账号于 {} 已在其他设备登录 {}({})"),
// -------------------- 自定义 - 通用 --------------------

View File

@@ -31,6 +31,9 @@ public class LoginUser {
@Schema(description = "头像地址")
private String avatar;
@Schema(description = "登录时间戳")
private Long timestamp;
@Schema(description = "角色")
private List<String> roles;