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
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 = "operationapplog")
public class OperationAppLog {
    @Id
    private String id;
 
 
    @Field(type = FieldType.Keyword)
    @ApiModelProperty("操作账户")
    private String opreateName;
 
    @Field(type = FieldType.Integer)
    @ApiModelProperty("1 app 2 小程序 3后台")
    private String appPrograme;
 
    @Field(type = FieldType.Keyword)
    @ApiModelProperty("模块名称")
    private String methodName;
 
    @Field(type = FieldType.Keyword)
    @ApiModelProperty("操作描述")
    private String operateAction;
 
    @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.Text)
    @ApiModelProperty(hidden = true)
    private String remark;
 
}