package com.gz.core;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.annotation.LogicDelete;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

/**
 * DTO公共部分抽取
 * @author LiuchangLan
 * @date 2021/1/26 22:41
 */
@Data
public class BaseDTO {
    /**
     * 主键id
     */
    @Id
    @GeneratedValue(generator = "JDBC")
    private Integer id;
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private String createTime;
    /**
     * 修改时间
     */
    @Column(name = "update_time")
    private String updateTime;
    /**
     * 创建人
     */
    @Column(name = "created")
    private String created;
    /**
     * 修改人
     */
    @Column(name = "updated")
    private String updated;

    /**
     * @description 逻辑删除
     * @author LiuChangLan
     * @since 2021/2/23 14:49
     */
    @Column(name = "deleted")
    @LogicDelete(notDeletedValue = 0,isDeletedValue = 1)
    private Integer deleted;
}
