提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.logger.vo.loginlog; |
H |
2 |
|
|
3 |
import com.iailab.framework.excel.core.annotations.DictFormat; |
|
4 |
import com.iailab.framework.excel.core.convert.DictConvert; |
|
5 |
import com.iailab.module.system.enums.DictTypeConstants; |
|
6 |
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
|
7 |
import com.alibaba.excel.annotation.ExcelProperty; |
|
8 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
9 |
import lombok.Data; |
|
10 |
|
|
11 |
import java.time.LocalDateTime; |
|
12 |
|
|
13 |
@Schema(description = "管理后台 - 登录日志 Response VO") |
|
14 |
@Data |
|
15 |
@ExcelIgnoreUnannotated |
|
16 |
public class LoginLogRespVO { |
|
17 |
|
|
18 |
@Schema(description = "日志编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
19 |
@ExcelProperty("日志主键") |
|
20 |
private Long id; |
|
21 |
|
|
22 |
@Schema(description = "日志类型,参见 LoginLogTypeEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
23 |
@ExcelProperty(value = "日志类型", converter = DictConvert.class) |
|
24 |
@DictFormat(DictTypeConstants.LOGIN_TYPE) |
|
25 |
private Integer logType; |
|
26 |
|
|
27 |
@Schema(description = "用户编号", example = "666") |
|
28 |
private Long userId; |
|
29 |
|
|
30 |
@Schema(description = "用户类型,参见 UserTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
|
31 |
private Integer userType; |
|
32 |
|
|
33 |
@Schema(description = "链路追踪编号", example = "89aca178-a370-411c-ae02-3f0d672be4ab") |
|
34 |
private String traceId; |
|
35 |
|
|
36 |
@Schema(description = "用户账号", requiredMode = Schema.RequiredMode.REQUIRED, example = "iailab") |
|
37 |
@ExcelProperty("用户账号") |
|
38 |
private String username; |
|
39 |
|
|
40 |
@Schema(description = "登录结果,参见 LoginResultEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
41 |
@ExcelProperty(value = "登录结果", converter = DictConvert.class) |
|
42 |
@DictFormat(DictTypeConstants.LOGIN_RESULT) |
|
43 |
private Integer result; |
|
44 |
|
|
45 |
@Schema(description = "用户 IP", requiredMode = Schema.RequiredMode.REQUIRED, example = "127.0.0.1") |
|
46 |
@ExcelProperty("登录 IP") |
|
47 |
private String userIp; |
|
48 |
|
|
49 |
@Schema(description = "浏览器 UserAgent", example = "Mozilla/5.0") |
|
50 |
@ExcelProperty("浏览器 UA") |
|
51 |
private String userAgent; |
|
52 |
|
|
53 |
@Schema(description = "登录时间", requiredMode = Schema.RequiredMode.REQUIRED) |
|
54 |
@ExcelProperty("登录时间") |
|
55 |
private LocalDateTime createTime; |
|
56 |
|
|
57 |
} |