5 changed files with 81 additions and 1 deletions
@ -0,0 +1,31 @@
|
||||
package com.biutag.lan.validate.system; |
||||
|
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import jakarta.validation.constraints.NotEmpty; |
||||
import lombok.Data; |
||||
import org.hibernate.validator.constraints.Length; |
||||
|
||||
import java.io.Serializable; |
||||
|
||||
@Data |
||||
@ApiModel("重置密码参数") |
||||
public class ResetPasswordValidate implements Serializable { |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
@NotEmpty(message = "密码不能为空") |
||||
@Length(min = 6, max = 18, message = "密码错误") |
||||
@ApiModelProperty(value = "登录账号", required = true) |
||||
private String oldpassword; |
||||
|
||||
@NotEmpty(message = "密码不能为空") |
||||
@Length(min = 6, max = 18, message = "密码错误") |
||||
@ApiModelProperty(value = "登录密码", required = true) |
||||
private String password; |
||||
|
||||
@NotEmpty(message = "密码不能为空") |
||||
@Length(min = 6, max = 18, message = "密码错误") |
||||
@ApiModelProperty(value = "登录密码", required = true) |
||||
private String passwordConfirm; |
||||
|
||||
} |
||||
Loading…
Reference in new issue