package com.ruoyi.auth.form;
|
|
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.Pattern;
|
|
/**
|
* 手机号验证码登录对象
|
*
|
* @author hugray
|
*/
|
public class PhoneCodeLoginBody
|
{
|
/** 手机号 */
|
@NotBlank(message = "请输入手机号")
|
@Pattern(regexp = "^1[3-9]\\d{9}$", message = "请输入正确手机号")
|
private String phone;
|
|
/** 短信验证码 */
|
@NotBlank(message = "请输入验证码")
|
private String code;
|
|
public String getPhone()
|
{
|
return phone;
|
}
|
|
public void setPhone(String phone)
|
{
|
this.phone = phone;
|
}
|
|
public String getCode()
|
{
|
return code;
|
}
|
|
public void setCode(String code)
|
{
|
this.code = code;
|
}
|
}
|