Add PostParam dto

pull/137/head
johnniang 2019-03-04 17:38:08 +08:00
parent 9132163a42
commit 7e267000bf
1 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,26 @@
package cc.ryanc.halo.model.params;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
/**
* Parameter of password resetting.
*
* @author johnniang
*/
@Data
public class PasswordResetParam {
@NotBlank(message = "Password must not be blank")
@Size(min = 6, max = 18, message = "Length of password must be between {min} to {max}")
private String password;
@NotBlank(message = "Confirm password must not be blank")
@Size(min = 6, max = 18, message = "Length of confirm password must be between {min} to {max}")
private String definePassword;
@NotBlank(message = "Reset code must not be blank")
private String code;
}