xiangpei
2025-02-12 1a983833a7af79d5ab224fedc627b737e955e9d7
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或抛出异常
    }
}