package com.yuchen.saas.manage.user.api.vo.sassuser;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "保存个人用户信息", description = "保存个人用户信息")
public class SaasUserSaveVo {


    @NotNull(message = "用户id必填")
    @ApiModelProperty(value = "用户ID")
    @JsonSerialize(
            using = ToStringSerializer.class
    )
    private Long id;

    @NotNull(message = "请填写姓名")
    @ApiModelProperty(value = "姓名")
    private String name;

    @NotNull(message = "请选择性别")
    @ApiModelProperty(value = "性别1男，2女")
    private Integer sex;

    @NotNull(message = "请填写证件号码")
    @ApiModelProperty(value = "证件号码")
    private String idcard;

//    @ApiModelProperty(value = "手机号码")
//    private String phone;

    @NotNull(message = "请上传个人照片")
    @ApiModelProperty(value = "个人照片")
    private String pic;

    @ApiModelProperty(value = "联系电话")
    private String contactPhone;

    @ApiModelProperty(value = "省")
    private String contactProvince;
    @ApiModelProperty(value = "省名称")
    private String contactProvinceName;

    @ApiModelProperty(value = "市")
    private String contactCity;
    @ApiModelProperty(value = "市名称")
    private String contactCityName;

    @ApiModelProperty(value = "区/县")
    private String contactCounty;
    @ApiModelProperty(value = "区/县名称")
    private String contactCountyName;

    @ApiModelProperty(value = "镇/街道")
    private String contactTown;
    @ApiModelProperty(value = "镇/街道名称")
    private String contactTownName;

    @ApiModelProperty(value = "详细地址")
    private String contactAddress;
}
