package com.jeelowcode.service.system.controller.vo.dept.position;

import com.jeelowcode.tool.framework.excel.core.annotations.DictFormat;
import com.jeelowcode.tool.framework.excel.core.convert.DictConvert;
import com.jeelowcode.service.system.constant.DictTypeConstants;
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 PositionRespVO {

    @Schema(description = "职位编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @ExcelProperty("职位编号")
    private Long id;

    @Schema(description = "职位名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "小土豆")
    @ExcelProperty("职位名称")
    private String name;

    @Schema(description = "显示顺序不能为空", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @ExcelProperty("职位排序")
    private Integer sort;

    @Schema(description = "状态，参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat(DictTypeConstants.COMMON_STATUS)
    private Integer status;

    @Schema(description = "备注", example = "快乐的备注")
    private String remark;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime createTime;

}
