package com.cf.imes.module.system.controller.admin.user.vo.user;

import com.cf.imes.framework.common.validation.Mobile;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import jakarta.validation.constraints.NotEmpty;

@Schema(description = "管理后台 - 用户重置密码 Request VO")
@Data
public class UserResetPasswordReqVO {

    @Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "123456")
    @NotEmpty(message = "密码不能为空")
    @Length(min = 4, max = 16, message = "密码长度不少于8位，且包含大小写字母、数字和特殊字符")
    private String password;

    @Schema(description = "短信验证码", example = "123456")
    @Length(min = 6, max = 6, message = "短信验证码不正确")
    @NotEmpty(message = "短信验证码不能为空")
    private String smsCaptchaVerification;

    @Schema(description = "手机号", example = "15601691300")
    @Mobile
    @NotEmpty(message = "手机号不能为空")
    private String mobile;
}
