package com.bjtdba.userCenter.dto.request;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.*;

import java.math.BigDecimal;

@Data
public class UpdateUserInfoRequest {
    @Valid
    @NotNull(message = "用户ID不能为空")
    private Integer uid;
    @Valid
    @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;
}

