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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 表单设计器模板 Response VO")
@Data
@ExcelIgnoreUnannotated
public class DataTemplateRespVO {

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

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

    @Schema(description = "主数据id，用于版本识别", requiredMode = Schema.RequiredMode.REQUIRED, example = "12080")
    @ExcelProperty("主数据id，用于版本识别")
    private Long mainId;

    @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 = "节点类型,字典：qms_tree_node_type，category-分类；data-表单", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("节点类型,字典：qms_tree_node_type，category-分类；data-表单")
    private String nodeType;

    @Schema(description = "数据键", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("数据键")
    private String dataKey;

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

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

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

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

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

    @Schema(description = "模板内容")
    @ExcelProperty("模板内容")
    private String formContent;

    @Schema(description = "移动端模板内容")
    @ExcelProperty("移动端模板内容")
    private String mobileContent;

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

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

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

}