package com.zt.plat.module.qms.business.reportdoc.controller.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.zt.plat.module.qms.business.config.controller.vo.ConfigPermissionRespVO;
import com.zt.plat.module.qms.business.config.controller.vo.ConfigPermissionSaveReqVO;
import com.zt.plat.module.qms.core.aspect.annotation.Dict;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "管理后台 - 报告类型配置 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ReportDocumentTypeRespVO {

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

    @Schema(description = "报表类型ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "9447")
    @ExcelProperty("报表类型ID")
    private Long configReportTypeId;

    @Schema(description = "类型名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @ExcelProperty("类型名称")
    private String name;

    @Schema(description = "流程key", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("流程key")
    private String flowKey;

    @Schema(description = "报告模板key", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("报告模板key")
    private String reportKey;

    @Schema(description = "报告编号规则", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("报告编号规则")
    private String codeRule;

    @Schema(description = "报告分类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("报告分类")
    @Dict(dicCode = "jy_doc_main_type")
    private String documentType;

    @Schema(description = "权限")
    @ExcelProperty("权限")
    private Integer permission;

    @Schema(description = "样品数量", example = "30323")
    @ExcelProperty("样品数量")
    private Integer sampleCount;

    @Schema(description = "其他配置")
    @ExcelProperty("其他配置")
    private String customConfig;

    @Schema(description = "所属部门")
    @ExcelProperty("所属部门")
    private String systemDepartmentCode;

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

    @Schema(description = "备注")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "版本", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("版本")
    private Integer version;

    @Schema(description = "排序号")
    @ExcelProperty("排序号")
    private Integer sortNo;

    @Schema(description = "是否最新版本")
    @ExcelProperty("是否最新版本")
    private String currentFlag;

    @Schema(description = "主id")
    @ExcelProperty("主id")
    private Long mainId;

    @Schema(description = "前端组件")
    @ExcelProperty("前端组件")
    private String pageComponent;

    @Schema(description = "前端组件（移动端）")
    @ExcelProperty("前端组件（移动端）")
    private String pageComponentMobile;

    //===========扩展字段=======================
    @Schema(description = "权限列表")
    List<ConfigPermissionRespVO> permissionList;
}