44 lines
933 B
Java
44 lines
933 B
Java
|
|
package com.newyetai.usercenter.dto;
|
||
|
|
|
||
|
|
import java.io.Serializable;
|
||
|
|
|
||
|
|
import javax.validation.constraints.NotEmpty;
|
||
|
|
|
||
|
|
import com.newyetai.common.dto.BaseOperateDTO;
|
||
|
|
|
||
|
|
import lombok.AllArgsConstructor;
|
||
|
|
import lombok.Builder;
|
||
|
|
import lombok.Data;
|
||
|
|
import lombok.NoArgsConstructor;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @author chenyun
|
||
|
|
* @description 重置密码DTO
|
||
|
|
* @date 2020/8/26 17:54
|
||
|
|
*/
|
||
|
|
@Data
|
||
|
|
@Builder
|
||
|
|
@AllArgsConstructor
|
||
|
|
@NoArgsConstructor
|
||
|
|
public class ResetPasswordByPhoneDTO extends BaseOperateDTO implements Serializable {
|
||
|
|
private static final long serialVersionUID = 8505258030368487025L;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 验证码
|
||
|
|
*/
|
||
|
|
@NotEmpty(message = "短信验证码不能为空")
|
||
|
|
private String phoneCode;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 新密码
|
||
|
|
*/
|
||
|
|
@NotEmpty(message = "新密码不能为空")
|
||
|
|
private String newPassword;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 确认密码
|
||
|
|
*/
|
||
|
|
@NotEmpty(message = "确认新密码不能为空")
|
||
|
|
private String confirmPassword;
|
||
|
|
}
|