Helius
2021-06-21 5812839f3e23bb09e1a9b100b63273a646155709
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
68
69
70
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;
 
 
}