package com.softwarebr.nunu.json.api.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * 找回密码
 * @Author lilin
 * @Date 2020-02-17 14:07:07
 */
@Data
@ApiModel
public class PasswordResetParam {

    @ApiModelProperty(value = "手机号码", required = true, example = "15220276660")
    @Length(min = 11, max = 11, message = "手机号码输入不正确")
    private String phone;

    @ApiModelProperty(value = "新密码", required = true, example = "123456")
    @Length(min = 6, max = 12, message = "请设置密码为6-12个英文字符/数字/英文标点符号")
    private String password;

    @ApiModelProperty(value = "验证码", required = true, example = "6666")
    @Length(min = 4, max = 4, message = "验证码不能为空")
    private String captcha;

}
