package com.ruoyi.web.modules.app.domain;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 小程序用户注册请求体
 */
public class AppUserRegisterBody
{
    @NotBlank(message = "用户昵称不能为空")
    @Size(min = 1, max = 30, message = "用户昵称长度不能超过30个字符")
    private String nickName;

    @NotBlank(message = "用户名不能为空")
    @Size(min = 2, max = 20, message = "用户名长度须在2到20个字符之间")
    private String userName;

    @NotBlank(message = "用户密码不能为空")
    @Size(min = 5, max = 20, message = "密码长度须在5到20个字符之间")
    private String password;

    public String getNickName()
    {
        return nickName;
    }

    public void setNickName(String nickName)
    {
        this.nickName = nickName;
    }

    public String getUserName()
    {
        return userName;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getPassword()
    {
        return password;
    }

    public void setPassword(String password)
    {
        this.password = password;
    }
}
