package com.fzm.mall.server.admin.home_page.entity.dto;

import com.fzm.mall.server.admin.constant.MallResponseError;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author wangp
 * @date 2021/4/13 17:05
 * @description 重置密码
 * @since JDK 1.8
 */
@Data
@ApiModel(value = "ResetPWD", description = "重置密码")
public class ResetPwdDTO {

    @ApiModelProperty(value = "手机号")
    @NotBlank(message = MallResponseError.NULL_PARAM_ERROR)
    private String phone;

    @ApiModelProperty(value = "验证token")
    @NotBlank(message = MallResponseError.NULL_PARAM_ERROR)
    private String token;

    @ApiModelProperty(value = "新密码")
    @NotBlank(message = MallResponseError.NULL_PARAM_ERROR)
    private String newPwd;

    @ApiModelProperty(value = "确认新密码")
    @NotBlank(message = MallResponseError.NULL_PARAM_ERROR)
    private String newPwd2;

}
