package com.qqchen.deploy.backend.workflow.dto;

import com.fasterxml.jackson.databind.JsonNode;
import com.qqchen.deploy.backend.workflow.enums.NodeCategoryEnums;
import com.qqchen.deploy.backend.workflow.enums.NodeTypeEnums;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 工作流节点定义DTO
 */
@Data
@Schema(description = "工作流节点定义")
public class WorkflowNodeTypeDefinedDTO {

    @Schema(description = "节点编码")
    private String nodeCode;

    @Schema(description = "节点名称")
    private String nodeName;

    @Schema(description = "节点类型")
    private NodeTypeEnums nodeType;

    @Schema(description = "节点分类")
    private NodeCategoryEnums category;

    @Schema(description = "节点属性变量JSON SCHEMA")
    private JsonNode panelVariablesSchema;

    @Schema(description = "节点环境变量JSON SCHEMA")
    private JsonNode localVariablesSchema;

    @Schema(description = "节点表单变量JSON SCHEMA")
    private JsonNode formVariablesSchema;

    @Schema(description = "自定义节点UI JSON SCHEMA")
    private JsonNode uiVariables;
}