package com.kxs.user.api.dto.kxsapp.app;

import com.kxs.common.core.valid.Phone;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * @author lengleng
 * @date 2017/11/5
 */
@Data
public class RegisterDTO {

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

	/**
	 * 邀请码
	 */
	@NotBlank(message = "邀请码不能为空")
	private String userCode;

	/**
	 * 密码
	 */
	@NotBlank(message = "密码不能为空")
	@Length(min = 6, max = 18, message = "密码长度在6-18位之间")
	private String password;

	/**
	 * 重复密码
	 */
	@NotBlank(message = "确认密码不能为空")
	@Length(min = 6, max = 18, message = "密码长度在6-18位之间")
	private String confirmPwd;

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

}
