package com.starry.admin.modules.system.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import lombok.Data;

/**
 * @Author: huchuansai
 * @Date: 2024/6/14 3:05 PM
 * @Description:
 */
@Data
@ApiModel(value = "修改手机号参数", description = "用户修改手机号的请求参数")
public class UpdateUserMobileParam {

    @ApiModelProperty(value = "用户ID", notes = "要修改手机号的用户ID，不传则修改当前登录用户")
    private String userId;

    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    @ApiModelProperty(value = "新手机号", required = true, example = "13800138000", notes = "用户的新手机号")
    private String mobile;

    @NotBlank(message = "验证码不能为空")
    @ApiModelProperty(value = "短信验证码", required = true, example = "123456", notes = "发送到新手机号的验证码")
    private String smsCode;

}
