package com.zt.plat.module.qms.common.data.controller.vo;

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 DataCollectionRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "21859")
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "主id")
    @ExcelProperty("主id，用于标识版本")
    private Long mainId;

    @Schema(description = "上级id", requiredMode = Schema.RequiredMode.REQUIRED, example = "28344")
    @ExcelProperty("上级id")
    private Long parentId;

    @Schema(description = "id路径", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("id路径")
    private String idPath;

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

    @Schema(description = "节点类型,category-分类；form-表单", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("节点类型,category-分类；form-表单")
    private String nodeType;

    @Schema(description = "数据键,【字典】【jy_data_collect_key】文件、记录、模板")
    @ExcelProperty("数据键,【字典】【jy_data_collect_key】文件、记录、模板")
    private String dataKey;

    @Schema(description = "版本")
    @ExcelProperty("版本")
    private Integer version;

    @Schema(description = "是否最新版本,默认显示最新版本")
    @ExcelProperty("是否最新版本,默认显示最新版本")
    private String currentFlag;

    @Schema(description = "禁用状态,0-启用；1-禁用")
    @ExcelProperty("禁用状态,0-启用；1-禁用")
    private String cancelFlag;

    @Schema(description = "是否流程审批")
    @ExcelProperty("是否流程审批")
    private String flowFlag;

    @Schema(description = "表单key")
    @ExcelProperty("表单key")
    private String formKey;

    @Schema(description = "表单版本id", example = "24468")
    @ExcelProperty("表单版本id")
    private String formVersionId;

    @Schema(description = "流程key")
    @ExcelProperty("流程key")
    private String flowKey;

    @Schema(description = "流程版本id", example = "23527")
    @ExcelProperty("流程版本id")
    private String flowVersionId;

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

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

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

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

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}