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

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

/**
 * @Author: huchuansai
 * @Date: 2024/6/14 11:27 AM
 * @Description:
 */
@Data
@ApiModel(value = "用户添加参数", description = "新增系统用户的请求参数")
public class UserAddParam {

    @NotEmpty(message = "请指定店员")
    @ApiModelProperty(value = "店员ID", required = true, notes = "关联的店员ID")
    private String clerkId;

    @NotEmpty(message = "请指定手机号")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    @ApiModelProperty(value = "手机号", required = true, example = "13800138000", notes = "用户手机号，作为登录账号")
    private String mobile;

    @NotEmpty(message = "请指定短信验证码")
    @ApiModelProperty(value = "短信验证码", required = true, example = "123456", notes = "发送到手机的验证码")
    private String smsCode;

}
