package com.izouma.nineth.dto;

import com.izouma.nineth.converter.EncryptConverter;
import com.izouma.nineth.enums.AuthStatus;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Convert;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class UserSynchronizationDto {

    @ApiModelProperty("昵称")
    private String nickname;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("用户是否绑定了银行卡")
    private Boolean isUserBankCard;

    @ApiModelProperty("银行卡号")
    @Convert(converter = EncryptConverter.class)
    private String bankNo;

    @ApiModelProperty("实名审核状态")
    @Enumerated(EnumType.STRING)
    private AuthStatus authStatus;

    @ApiModelProperty("身份证号")
    @Convert(converter = EncryptConverter.class)
    @Column(length = 80)
    private String idNo;

    @ApiModelProperty("姓名")
    private String realName;

}
