package cn.lili.modules.lmk.enums.general; import lombok.Getter; import org.apache.commons.lang3.StringUtils; /** * 点赞业务类型 * * @author:xp * @date:2025/5/14 10:30 */ @Getter public enum ThumbsUpTypeEnum { VIDEO_COMMENT("video_comment", "视频评论"), VIDEO("video", "视频"), ; private final String value; private final String desc; ThumbsUpTypeEnum(String value, String desc) { this.value = value; this.desc = desc; } /** * 获取含义 * * @param value * @return */ public static String getDescByValue(String value) { if (StringUtils.isBlank(value)) { return null; } for (ThumbsUpTypeEnum e : ThumbsUpTypeEnum.values()){ if (value.equals(e.getValue())) { return e.getDesc(); } } return null; } }