package com.qqchen.deploy.backend.workflow.dto.definition.node.uiVariables;

import com.qqchen.deploy.backend.workflow.annotation.SchemaProperty;
import lombok.Data;

@Data
public class NodeUiVariables {

    @SchemaProperty(
        title = "节点大小",
        required = true
    )
    private Size size;

    @SchemaProperty(
        title = "节点端口",
        required = true
    )
    private Ports ports;

    @SchemaProperty(
        title = "节点形状",
        description = "节点的形状类型",
        required = true,
        enumValues = {"rect", "circle", "diamond"},
        enumNames = {"矩形", "圆形", "菱形"},
        defaultValue = "rect"
    )
    private String shape;

    @SchemaProperty(
        title = "节点样式",
        required = true
    )
    private Style style;
} 