6 changed files with 91 additions and 7 deletions
@ -0,0 +1,32 @@
|
||||
package com.biutag.outer.validate; |
||||
|
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import jakarta.validation.constraints.NotBlank; |
||||
import jakarta.validation.constraints.NotEmpty; |
||||
import lombok.Data; |
||||
import org.hibernate.validator.constraints.Length; |
||||
|
||||
import java.io.Serializable; |
||||
|
||||
@Data |
||||
@ApiModel("系统登录参数") |
||||
public class UserLoginsValidate implements Serializable { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
@NotEmpty(message = "账号不能为空") |
||||
@Length(min = 11, max = 11, message = "账号或验证码错误") |
||||
@ApiModelProperty(value = "登录账号", required = true) |
||||
private String phone; |
||||
|
||||
@NotBlank(message = "短信验证码不能为空") |
||||
@Length(min = 4, max = 4, message = "短信验证码错误") |
||||
private String code; |
||||
|
||||
@NotBlank(message = "短信验证码错误或已失效") |
||||
private String smsRequestId; |
||||
|
||||
|
||||
|
||||
} |
||||
Loading…
Reference in new issue