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