package com.cpop.oam.business.vo;

import com.cpop.core.anno.StringArrayConvert;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * Description:
 * date: 2023/5/11 15:24
 *
 * @Author ST
 */
@Data
@Accessors(chain = true)
@Schema(description = "系统用户(员工)信息")
public class StaffPageVo {

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

    /**
     * 姓名
     */
    @Schema(description ="姓名")
    private String name;

    /**
     * 用户名
     */
    @Schema(description ="用户名")
    private String userName;

    /**
     * 部门id
     */
    @StringArrayConvert
    @Schema(description ="部门id")
    private String deptId;

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

    /**
     * 员工类型
     */
    @Schema(description ="员工类型")
    private Integer staffType;

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

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

    /**
     * 手机号
     */
    @Schema(description ="手机号")
    private String phoneNumber;

    /**
     * 性别(0:男;1:女)
     */
    @Schema(description ="性别(0:男;1:女)")
    private Boolean sex;

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

    /**
     * 状态(0:停用;1:启用)
     */
    @Schema(description ="状态(0:停用;1:启用)")
    private Boolean status;

    /**
     * 角色id
     */
    @Schema(description ="角色id")
    private String roleId;

    /**
     * 角色名
     */
    @Schema(description ="角色名")
    private String roleName;

    /**
     * 更新时间
     */
    @Schema(description ="更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private LocalDateTime updateTime;

    /**
     * 密码
     */
    @Schema(description ="密码")
    private String password;

    /**
     * 是否是运维账号
     */
    @Schema(description ="是否是运维账号")
    private Boolean isOperation;
}
