package cn.iocoder.yudao.module.mes.controller.admin.workteam.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 生产班组 Response VO")
@Data
@ExcelIgnoreUnannotated
public class WorkTeamDetailRespVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19207")
    @ExcelProperty("ID")
    private Long id;

    @Schema(description = "备注", example = "随便")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;
    /**
     * 班组id
     */
    @Schema(description = "班组类型", example = "1白班，2夜班")
    private Long workTeamId;
    /**
     * 用户ID
     */
    @Schema(description = "用户ID", example = "1白班，2夜班")
    private Long userId;

    @Schema(description = "用户名称", example = "1白班，2夜班")
    @ExcelProperty("用户名称")
    private String userName;

    @Schema(description = "工号", example = "1白班，2夜班")
    @ExcelProperty("工号")
    private String nickName;
    /**
     * 角色
     * <p>
     * 枚举 {@link TODO mes_work_team_user_role 对应的类}
     */
    @Schema(description = "角色", example = "1白班，2夜班")
    @ExcelProperty("角色")
    @DictFormat("mes_work_team_user_role")
    private String userRoleName;

    @Schema(description = "角色", example = "1白班，2夜班")
    private Integer userRole;
}