package com.xzx.log.entity;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import org.springframework.data.annotation.Id;
|
import org.springframework.data.elasticsearch.annotations.DateFormat;
|
import org.springframework.data.elasticsearch.annotations.Document;
|
import org.springframework.data.elasticsearch.annotations.Field;
|
import org.springframework.data.elasticsearch.annotations.FieldType;
|
|
import java.util.Date;
|
|
@Data
|
@Document(indexName = "intefaceadminlog")
|
public class IntefaceAdminLog {
|
@Id
|
private String id;
|
|
@Field(type = FieldType.Keyword)
|
@ApiModelProperty("接口路径")
|
private String methodPath;
|
|
@Field(type = FieldType.Keyword)
|
@ApiModelProperty("接口描述")
|
private String methodDesc;
|
|
@Field(type = FieldType.Keyword)
|
@ApiModelProperty("接口名称")
|
private String methodName;
|
|
@Field(type = FieldType.Keyword)
|
@ApiModelProperty("入参")
|
private String intoParameter;
|
|
@Field(type = FieldType.Text)
|
@ApiModelProperty("出参")
|
private String outParameter;
|
|
@Field(type = FieldType.Text)
|
@ApiModelProperty("sql")
|
private String sqlParameter;
|
|
@Field(type = FieldType.Date,format =DateFormat.custom,pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss")
|
@ApiModelProperty("创建时间")
|
private Date createTime;
|
|
@Field(type = FieldType.Integer)
|
@ApiModelProperty("类型1:接口 2:后台")
|
private String implementType;
|
|
@Field(type = FieldType.Keyword)
|
@ApiModelProperty("日志等级1:debug 2:error")
|
private String logLevel;
|
|
@Field(type = FieldType.Keyword)
|
@ApiModelProperty("错误消息")
|
private String errMessage;
|
|
@Field(type = FieldType.Integer)
|
@ApiModelProperty("运行时间单位毫秒")
|
private String runTime;
|
|
@Field(type = FieldType.Keyword)
|
@ApiModelProperty("操作用户ID")
|
private String userId;
|
|
|
}
|