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或抛出异常 } }