feat: 通知公告临时提交

通知公告临时提交
This commit is contained in:
胡少翔
2024-09-02 16:23:48 +08:00
parent 2ec2eb91b5
commit b649eacba5
8 changed files with 206 additions and 54 deletions

View File

@@ -0,0 +1,19 @@
package com.youlai.boot.common.enums;
/**
* 消息类型枚举
* @author Theo
* @since 2024-9-2 14:32:58
*/
public enum MessageTypeEnum {
WEBSOCKET("webScoket", "websocket消息");
private String value;
private String label;
MessageTypeEnum(String value, String label) {
this.value = value;
this.label = label;
}
}

View File

@@ -60,4 +60,8 @@ public class CommonUtil {
return List.of(str.split(separator));
}
public static String delHtmlTags(String htmlStr) {
return htmlStr.replaceAll("<[^>]+>", "");
}
}