/**
 * Copyright (c) 2018 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package com.qnfhq.modules.user.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;


/**
 * 注册表单
 *
 * @author Yelz
 */
@Data
@Schema(title = "注册表单")
public class AppRegisterDTO {


    @Schema(title = "国家")
    @NotBlank(message="{NotBlank.country}")//国家不能为空
    private String country;

    @Schema(title = "密码")
    @NotBlank(message="{NotBlank.password}")//密码不能为空
    private String loginPassword;

    @Schema(title = "邮箱")
    @Email(message = "{Email.format.err}")//邮箱格式不正确
    @NotBlank(message="{NotBlank.email}")//邮箱不能为空
    private String email;

    @Schema(title = "区号")
    @NotBlank(message="{NotBlank.zone}")//区号不能为空
    private String zone;

    @Schema(title = "手机号")
    @NotBlank(message="{NotBlank.phone}")//手机号不能为空
    private String phone;

    @Schema(title = "推荐码")
    private String activeCode;

    @Schema(title = "验证码类型")
    @NotBlank(message="{NotBlank.codeType}")//验证码类型不能空
    private String codeType;

    //    @Schema(title = "验证码")
//    @NotBlank(message="{NotBlank.code}")//验证码不能为空
//    private String code;

}
