package com.czg.account.dto.user;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author Administrator
 */
@Data
public class SysUserAddDTO {

    /**
     * 账号
     */
    @NotBlank(message = "账号不为空")
    private String account;

    /**
     * 昵称
     */
    @NotBlank(message = "昵称不为空")
    private String nickName;

    /**
     * 性别
     */
    @NotBlank(message = "性别不为空")
    private String gender;

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

    /**
     * 邮箱
     */
    @NotBlank(message = "邮箱不为空")
    private String email;

    /**
     * 头像
     */
//    @NotBlank(message = "头像不为空")
//    private String avatar;

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

    /**
     * 是否为admin账号
     */
    @NotNull(message = "是否为admin账号不为空")
    private Boolean isAdmin;

    /**
     * 状态：1启用、0禁用
     */
    private Integer status;

    /**
     * 角色id
     */
    private Long roleId;

}
