package com.microservices.zone.resource.enums;

/**
 * AI资源类型枚举
 */
public enum AiResourceCategory {

    SKILL("SKILL", "Skill技能"),
    MODEL("MODEL", "模型"),
    DATASET("DATASET", "数据集");

    private final String code;
    private final String desc;

    AiResourceCategory(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static boolean isAiResourceCategory(String code) {
        return SKILL.getCode().equals(code) || MODEL.getCode().equals(code) || DATASET.getCode().equals(code);
    }
}
