xiangpei
2025-04-07 80662b34fe93b4ede00c7fc03fbd9f01355c94e2
common/src/main/java/com/ycl/common/enums/business/FileTypeEnum.java
@@ -1,5 +1,6 @@
package com.ycl.common.enums.business;
import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;
@@ -11,14 +12,21 @@
 */
@Getter
public enum FileTypeEnum {
    PROJECT_INFO("project_info", "项目基本信息");
    PROJECT_INFO("project_info", "项目基本信息"),
    INVEST_POLICY("invest_policy","投资项目产业政策符合情况"),
    DOCUMENT_INFO("document_info","相关文件"),
    PROJECT_COMPLETE_REPORT("project_complete_report", "项目竣工报告"),
    PROJECT_SITUATION_DESCRIPTION("project_situation_description", "项目情况说明"),
    PROJECT_PROGRESS_INFO_REPORT("project_progress_info_report", "项目进度计划项上报");
    private final String code;
    @EnumValue // 标明该字段存入数据库
    private final String type;
    @JsonValue // 标明在转JSON时使用该字段
    private final String desc;
    FileTypeEnum(String code, String desc) {
        this.code = code;
    FileTypeEnum(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }
}