package com.bjtdba.userCenter.dto.request;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class CreateUserInfoRequest {
    @Valid
    @NotNull(message = "账号不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "账号格式错误")
    private String account;
    private String realName;
    private String nickname;
    private Integer sex;
    private Long spreadUid;
    private String avatar;
    @Valid
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式错误")
    private String phone;
    private Integer status;
    private Integer external;
    private Integer externalId;
    private Integer levelId;
    @Valid
    @NotNull(message = "登录IP地址不能为空")
    private String lastIp;
    private String userType;
}

