package com.cpop.oam.business.bo;

import com.cpop.core.anno.StringArrayConvert;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;


/**
 * 员工表Bo
 *
 * @author DB.lost
 * @since 2023-05-11
 */
@Data
@Accessors(chain = true)
@Schema(description = "员工表")
public class StaffBo {

    /**
     * 主键
     */
    @Schema(description ="主键")
    private String id;

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

    /**
     * 部门id
     */
    @StringArrayConvert
    @NotBlank(message = "部门不能为空")
    @Schema(description = "部门id",requiredMode = Schema.RequiredMode.REQUIRED)
    private String deptId;

    /**
     * 用户id
     */
    @Schema(description ="用户id")
    private String userId;

    /**
     * 员工类型(0:技术人员;1:售后人员;2:管理人员)
     */
    @NotNull(message = "员工类型不能为空")
    @Schema(description = "员工类型(0:技术人员;1:售后人员;2:管理人员)",requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer staffType;

    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空")
    @Schema(description = "用户名",requiredMode = Schema.RequiredMode.REQUIRED)
    private String userName;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    @Schema(description = "密码",requiredMode = Schema.RequiredMode.REQUIRED)
    private String password;

    /**
     * 昵称
     */
    @Schema(description = "昵称")
    private String nickName;

    /**
     * 邮箱
     */
    @Schema(description = "邮箱")
    private String email;

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空")
    @Schema(description = "手机号",requiredMode = Schema.RequiredMode.REQUIRED)
    private String phoneNumber;

    /**
     * 性别(0:男;1:女)
     */
    @NotNull(message = "性别不能为空")
    @Schema(description = "性别(0:男;1:女)",requiredMode = Schema.RequiredMode.REQUIRED)
    private Boolean sex;

    /**
     * 头像
     */
    @Schema(description = "头像")
    private String avatar;

    /**
     * 状态(0:停用;1:启用)
     */
    @NotNull(message = "状态不能为空")
    @Schema(description = "状态(0:停用;1:启用)",requiredMode = Schema.RequiredMode.REQUIRED)
    private Boolean status;

    /**
     * 角色id
     */
    @NotBlank(message = "角色id不能为空")
    @Schema(description = "角色id",requiredMode = Schema.RequiredMode.REQUIRED)
    private String roleId;

    /**
     * 企业微信用户id
     */
    @Schema(description = "企业微信用户id",requiredMode = Schema.RequiredMode.REQUIRED)
    private String wxCpUserId;

}
