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;
|
}
|