| | |
| | | package com.ycl.common.enums.business; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.EnumValue; |
| | | import com.fasterxml.jackson.annotation.JsonValue; |
| | | import lombok.Getter; |
| | | |
| | |
| | | public enum FileTypeEnum { |
| | | PROJECT_INFO("project_info", "项目基本信息"); |
| | | |
| | | 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; |
| | | } |
| | | } |