package com.ycl.common.enums.business;
|
|
import com.baomidou.mybatisplus.annotation.EnumValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
import lombok.Getter;
|
|
/**
|
* 重点类型枚举
|
*
|
* @author:flq
|
* @date:2024/11/27 18:21
|
*/
|
@Getter
|
public enum ImportanceTypeEnum {
|
PROVINCIAL_KEY("provincial_key", "省重点"),
|
SUINING_KEY("suining_key","遂宁市重点"),
|
//县重点
|
SHEHONG_KEY("shehong_key","射洪市重点"),
|
NORMAL("normal", "一般");
|
|
@EnumValue // 标明该字段存入数据库
|
private final String type;
|
|
@JsonValue // 标明在转JSON时使用该字段
|
private final String desc;
|
|
ImportanceTypeEnum(String type, String desc) {
|
this.type = type;
|
this.desc = desc;
|
}
|
}
|