All Downloads are FREE. Search and download functionalities are using the official Maven repository.

k.e.book.ddh.entity.CcFaceidDO Maven / Gradle / Ivy


package k.e.book.ddh.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.BeanUtils;
import java.io.Serializable;
import java.util.Date;
/**
 * @author kk
 * @date 2023-05-21 11:01
 */
@EqualsAndHashCode(callSuper = false)
@Data
@TableName("cc_faceid")
@ApiModel(value="CcFaceidDO", description="CcFaceid")
public class CcFaceidDO extends Model  {
    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    /**
     * 用户编号
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 手机号码
     */
    @TableField("mobile")
    private String mobile;
    /**
     * 真实姓名
     */
    @TableField("name")
    private String name;
    /**
     * 身份证号码
     */
    @TableField("idcard")
    private String idcard;
    /**
     * 身份证正面
     */
    @TableField("idcard_pic_front")
    private String idcardPicFront;
    /**
     * 身份证背面
     */
    @TableField("idcard_pic_back")
    private String idcardPicBack;
    /**
     * 人脸照片
     */
    @TableField("face_image")
    private String faceImage;
    /**
     * 创建时间
     */
    @TableField("createtime")
    private Integer createtime;
    /**
     * 状态:0=隐藏,1=正常
     */
    @TableField("status")
    private Integer status;
    /**
     * createdAt
     */
    @TableField("created_at")
    private Date createdAt;
    /**
     * updatedAt
     */
    @TableField("updated_at")
    private Date updatedAt;
    /**
     * deletedAt
     */
    @TableField("deleted_at")
    private Date deletedAt;

    public static CcFaceidVO toVO(CcFaceidDO ccFaceidDO) {
        if(ccFaceidDO == null){
            return null;
        }
        CcFaceidVO ccFaceidVO = new CcFaceidVO();
        BeanUtils.copyProperties(ccFaceidDO, ccFaceidVO);
        return ccFaceidVO;
    }

    public static CcFaceidDO toDO(CcFaceidAddDTO ccFaceidAddDTO) {
        if (ccFaceidAddDTO == null) {
            return null;
        }
        CcFaceidDO ccFaceidDO = new CcFaceidDO();
        BeanUtils.copyProperties(ccFaceidAddDTO, ccFaceidDO);
        return ccFaceidDO;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy