package cn.pluss.platform.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * @author Djh
 */
@Data
@ApiModel("修改密码DTO")
public class ChangePwdDTO {

    @ApiModelProperty(value = "新手机号验证码", required = true)
    @NotEmpty(message = "验证码不能为空！")
    private String code;

    @ApiModelProperty(value = "密码", required = true)
    @NotEmpty(message = "密码不能为空！")
    private String password;

    @ApiModelProperty(value = "原手机号", required = true)
    @NotEmpty(message = "原手机号不能为空！")
    private String oldPhone;

    @ApiModelProperty(value = "新手机号", required = true)
    @NotEmpty(message = "新手机号不能为空！")
    private String phone;
}
