xiangpei
2025-02-17 4cd71c0be46a461432989ae7c5d6d56d9e7bbbed
common/src/main/java/com/ycl/common/enums/business/ProjectTypeEnum.java
@@ -29,4 +29,13 @@
        this.type = type;
        this.desc = desc;
    }
    public static String getDescByType(String type) {
        for (ProjectTypeEnum projectType : ProjectTypeEnum.values()) {
            if (projectType.type.equals(type)) {
                return projectType.desc;
            }
        }
        return null; // 如果没有找到对应的type,可以返回null或抛出异常
    }
}