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 VideoCommentStatusEnum {
|
|
NORMAL("normal", "正常"),
|
AUDITING("auditing", "审核中"),
|
INVALID("invalid", "无效的/未通过审核的"),
|
;
|
|
private final String value;
|
|
|
private final String desc;
|
|
VideoCommentStatusEnum(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 (VideoCommentStatusEnum e : VideoCommentStatusEnum.values()){
|
if (value.equals(e.getValue())) {
|
return e.getDesc();
|
}
|
}
|
return null;
|
}
|
}
|