cl
4 小时以前 52e09a6b7b7054fc51b9d4bf5f1fbec0a57e60f1
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
63
64
65
66
67
package com.vincent.rsf.httpaudit.entity;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;
 
import java.io.Serializable;
import java.util.Date;
 
/**
 * HTTP 接口审计记录
 */
@Data
@Accessors(chain = true)
@TableName("sys_http_audit_log")
public class HttpAuditLog implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @TableId(type = IdType.AUTO)
    private Long id;
 
    /** 应用名,如 spring.application.name */
    private String serviceName;
 
    /** EXTERNAL-外部;INTERNAL-内部 */
    private String scopeType;
 
    /** 请求路径(不含域名) */
    private String uri;
 
    private String method;
 
    /** 功能说明(来自配置最长前缀匹配) */
    private String functionDesc;
 
    private String queryString;
 
    /** 请求体 JSON/文本,全量 */
    private String requestBody;
 
    /** 响应体,查询类或超长时截断 */
    private String responseBody;
 
    /** 1 表示响应体已按规则截断 */
    private Integer responseTruncated;
 
    private Integer httpStatus;
 
    /** 1 正常(2xx 且无未捕获异常);0 异常 */
    private Integer okFlag;
 
    private Integer spendMs;
 
    private String clientIp;
 
    /** 链路上异常摘要 */
    private String errorMessage;
 
    private Date createTime;
 
    @TableLogic
    private Integer deleted;
}