| package com.xcong.excoin.common.entity; | 
|   | 
| import com.baomidou.mybatisplus.annotation.IdType; | 
| import com.baomidou.mybatisplus.annotation.TableId; | 
| import com.fasterxml.jackson.annotation.JsonFormat; | 
| import lombok.Data; | 
|   | 
| import java.io.Serializable; | 
| import java.util.Date; | 
|   | 
| /** | 
|  * @author wzy | 
|  * @date 2020-04-24 14:58 | 
|  **/ | 
| @Data | 
| public class BaseEntity implements Serializable { | 
|     private static final long serialVersionUID = 1L; | 
|   | 
|     @TableId(value = "id",type = IdType.AUTO) | 
|     private Long id; | 
|   | 
|     private String createBy; | 
|   | 
|     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | 
|     private Date createTime; | 
|   | 
|     private String updateBy; | 
|   | 
|     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | 
|     private Date updateTime; | 
|   | 
|     private Integer version; | 
| } |