jinlin
2024-01-23 52a302b11c08cbc564ff3931038ae57a305a95d6
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/**
 * Copyright (c) 2018 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有,侵权必究!
 */
 
package com.zt.modules.log.excel;
 
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;
 
import java.util.Date;
 
/**
 * 操作日志
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0
 */
@Data
public class SysLogOperationExcel {
 
    @ColumnWidth(21)
    @ExcelProperty("用户操作")
    private String operation;
 
    @ColumnWidth(30)
    @ExcelProperty("请求URI")
    private String requestUri;
 
    @ExcelProperty("请求方式")
    private String requestMethod;
 
    @ColumnWidth(30)
    @ExcelProperty("请求参数")
    private String requestParams;
 
    @ExcelProperty("请求时长(毫秒)")
    private Integer requestTime;
 
    @ColumnWidth(20)
    @ExcelProperty("User-Agent")
    private String userAgent;
 
    @ColumnWidth(20)
    @ExcelProperty("操作IP")
    private String ip;
 
    @ExcelProperty("状态")
    private String status;
 
    @ExcelProperty("用户名")
    private String creatorName;
 
    @ColumnWidth(30)
    @ExcelProperty("创建时间")
    private Date createDate;
 
}