package com.fzzy.api.entity; import com.bstek.dorado.annotation.PropertyDef; import lombok.Data; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import java.io.Serializable; import java.util.Date; /** * @author vince.xu * @ProjectName igds-api * @Description: 接口上传日志 * @date 2022-9-215:51 */ @Data @Entity @Table(name = "API_LOG") public class ApiLog implements Serializable { public static String TYPE_PUSH = "push"; public static String TYPE_SYNC = "sync"; /** * */ private static final long serialVersionUID = -3873863428841103422L; @Id @Column(name = "id", length = 40) private String id; @PropertyDef(label = "库区代码") @Column(name = "kqdm", length = 50) private String kqdm; @PropertyDef(label = "类型") @Column(name = "type", length = 6) private String type = TYPE_PUSH; @PropertyDef(label = "接口编号") @Column(name = "inteId", length = 10) private String inteId; @PropertyDef(label = "上传时间") @Column(name = "uploadTime") private Date uploadTime = new Date(); @PropertyDef(label = "上传结果") @Column(name = "status") private int status = 0; @PropertyDef(label = "返回信息") @Column(name = "result", length = 200) private String result; @PropertyDef(label = "接口数据主键") @Column(name = "dataId", length = 40) private String dataId; @PropertyDef(label = "数据内容") @Column(name = "data", length = 2000) private String data; }