package com.gxwebsoft.common.system.param;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 通过手机号查找账号参数
 *
 * @author WebSoft
 * @since 2025-12-12
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(description = "通过手机号查找账号参数")
public class FindAccountByPhoneParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotBlank(message = "手机号不能为空")
    @Schema(description = "手机号码", required = true)
    private String phone;

    @NotBlank(message = "短信验证码不能为空")
    @Schema(description = "短信验证码", required = true)
    private String smsCode;

    @NotNull(message = "模板ID不能为空")
    @Schema(description = "短信模板ID", required = true)
    private Integer templateId;
}
