package com.zcloud.basic.info.dto;

import com.alibaba.cola.dto.Command;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;

/**
 * web-client
 *
 * @Author zhangyue
 * @Date 2025-11-04 14:07:12
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AppUserRegisterCmd extends Command {

    @ApiModelProperty(value = "手机号", name = "phone", required = true)
    @NotEmpty(message = "手机号不能为空")
    private String phone;

    @ApiModelProperty(value = "密码", name = "newPassword", required = true)
    @NotEmpty(message = "密码不能为空")
    private String newPassword;

    @ApiModelProperty(value = "确认密码", name = "confirmPassword", required = true)
    @NotEmpty(message = "确认密码不能为空")
    private String confirmPassword;

    @ApiModelProperty(value = "验证码", name = "phoneCode", required = true)
    @NotEmpty(message = "验证码不能为空")
    private String phoneCode;

}

