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

import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 数据集分页 Request VO")
@Data
public class DataCollectionPageReqVO extends PageParam {

    @Schema(description = "上级id", example = "28344")
    private Long parentId;

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

    @Schema(description = "id路径")
    private String idPath;

    @Schema(description = "名称", example = "赵六")
    private String name;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}