package com.sqx.modules.app.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @TableName user_info
 */
@TableName(value ="user_info")
@Data
@EqualsAndHashCode
public class UserInfo implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.ID_WORKER)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 用户id
     */
    @TableField(updateStrategy = FieldStrategy.NEVER)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    /**
     * 姓名
     */
    private String certName;

    /**
     * 身份证号码
     */
    private String certNo;

    /**
     * 银行账号
     */
    private String accountNo;

    /**
     * 银行预留手机号
     */
    private String mobile;

    /**
     * 银行预留手机号
     */
    private String bankName;

    /**
     * 四要素接口响应报文
     */
    private String respJson;

    /**
     * 修改时间
     */
    private Date updateTime;

    @TableField(exist = false)
    private String name;
    @TableField(exist = false)
    private String phone;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


}
