package com.cpop.oam.business.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 员工表Bo
 *
 * @author DB.lost
 * @since 2023-05-11
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "Staff对象", description = "员工表")
public class MallStaffBo implements Serializable {

    /**
     * 主键
     */
    @ApiModelProperty("主键")
    private String id;

    /**
     * 姓名不能为空
     */
    @NotBlank(message = "姓名不能为空")
    @ApiModelProperty("姓名")
    private String name;

    /**
     * 品牌id不能为空
     */
    @NotBlank(message = "品牌id不能为空")
    @ApiModelProperty(value = "品牌id")
    private String brandId;

    /**
     * 用户id
     */
    @ApiModelProperty("用户id")
    private String userId;

    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名",required = true)
    private String userName;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    @ApiModelProperty(value = "密码",required = true)
    private String password;

    /**
     * 昵称
     */
    @NotBlank(message = "昵称不能为空")
    @ApiModelProperty(value = "昵称",required = true)
    private String nickName;

    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱")
    private String email;

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空")
    @ApiModelProperty(value = "手机号",required = true)
    private String phoneNumber;

    /**
     * 性别(0:男;1:女)
     */
    @NotNull(message = "性别不能为空")
    @ApiModelProperty(value = "性别(0:男;1:女)",required = true)
    private Boolean sex;

    /**
     * 头像
     */
    @ApiModelProperty(value = "头像")
    private String avatar;

    /**
     * 状态(0:停用;1:启用)
     */
    @NotNull(message = "状态不能为空")
    @ApiModelProperty(value = "状态(0:停用;1:启用)",required = true)
    private Boolean status;

}
