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

import com.qqchen.deploy.backend.framework.dto.BaseDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * 工作流分类DTO
 *
 * @author qqchen
 * @date 2025-10-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "工作流分类DTO")
public class WorkflowCategoryDTO extends BaseDTO {

    private Long id;

    /**
     * 分类名称
     */
    @Schema(description = "分类名称", example = "脚本执行")
    private String name;

    /**
     * 分类编码（唯一）
     */
    @Schema(description = "分类编码", example = "SCRIPT_EXECUTION")
    private String code;

    /**
     * 分类描述
     */
    @Schema(description = "分类描述", example = "用于执行各类脚本的流程")
    private String description;

    /**
     * 图标
     */
    @Schema(description = "图标", example = "CodeOutlined")
    private String icon;

    /**
     * 排序
     */
    @Schema(description = "排序", example = "1")
    private Integer sort;

    /**
     * 支持的触发方式列表
     */
    @Schema(description = "支持的触发方式列表", example = "[\"MANUAL\",\"SCHEDULED\"]")
    private List<String> supportedTriggers;

    /**
     * 是否启用
     */
    @Schema(description = "是否启用", example = "true")
    private Boolean enabled;
}
