LoginVO.java
1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package com.youjia.system.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;
/**
* 登录结果。
*/
@Data
@Builder
@Schema(description = "登录结果")
public class LoginVO {
@Schema(description = "登录令牌,后续请求放请求头 Authorization: Bearer {token}")
private String token;
@Schema(description = "令牌类型,固定 Bearer")
private String tokenType;
@Schema(description = "令牌过期时间")
private LocalDateTime expireAt;
@Schema(description = "用户 ID")
private Long userId;
@Schema(description = "登录账号")
private String account;
@Schema(description = "姓名")
private String name;
@Schema(description = "主属组织 ID")
private Long orgId;
@Schema(description = "数据域:1-全部数据 2-本部门及下级 3-本部门 4-仅本人")
private Integer dataScope;
@Schema(description = "角色编码集合")
private List<String> roleCodes;
@Schema(description = "权限码集合(前端据此控制按钮显隐,服务端仍会二次校验)")
private List<String> permCodes;
}