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

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

@Schema(description = "管理后台 - 数据集新增/修改 Request VO")
@Data
public class DataCollectionSaveReqVO {

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

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

    @Schema(description = "上级id", requiredMode = Schema.RequiredMode.REQUIRED, example = "28344")
    @NotNull(message = "上级id不能为空")
    private Long parentId;

    @Schema(description = "id路径")
//    @NotEmpty(message = "id路径不能为空")
    private String idPath;

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

    @Schema(description = "节点类型", example = "2")
//    @NotEmpty(message = "节点类型不能为空")
    private String nodeType;

    @Schema(description = "数据键")
//    @NotEmpty(message = "数据键")
    private String dataKey;

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

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

    @Schema(description = "禁用状态")
    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 = "是否创建新版本")
    private String newVersionFlag;

    @Schema(description = "字段列表")
    private List<DataCollectionFieldSaveReqVO> fieldList;

    @Schema(description = "删除字段")
    private String deleteFieldIds;

}