package com.fdkanfang.domain.dto;


import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


/**
 * Created by owen on 2020/3/2 0002 9:02
 *
 * 用户注册Dto
 */
@Data
public class RegisterDto {

    // 手机号
    @NotBlank(message = "手机号不能为空")
    private String phone;

    // 验证码
    @NotBlank(message = "验证码不能为空")
    private String code;

    // 密码
    @NotBlank(message = "密码不能为空")
    private String password;

    // 确认密码
    @NotBlank(message = "确认密码不能为空")
    private String confirmPassword;

    // 类型：register: 注册， reset：重置密码
//    private String type;


}
