package com.zhiqiyun.open.mvc.manager.params;

import com.zhiqiyun.open.core.enmus.Gender;
import com.zhiqiyun.open.utils.validation.MobileNumber;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @author jtoms.shen
 * @version 1.0
 * @date 2019/4/18 14:40
 */
@Data
public class SaveUserParam {
    @NotBlank(message = "用户昵称不能为空")
    private String nickName;

    @NotBlank(message = "用户手机号不能为空")
    @MobileNumber(message = "请输入正确的手机号")
    private String mp;

    @Email(message = "请输入正确的邮箱")
    private String email;

    private String avatar;

    private Gender gender = Gender.secret;

    private List<Long> listRoles;
}
