feat: 通知公告临时提交

通知公告临时提交
This commit is contained in:
胡少翔
2024-09-06 18:02:07 +08:00
parent 6f662dcde9
commit 3dae203dad
13 changed files with 81 additions and 48 deletions

View File

@@ -1,19 +0,0 @@
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

@@ -6,7 +6,7 @@ import lombok.RequiredArgsConstructor;
/**
* 通知类型枚举
* 1-系统通知 0-系统消息
* 0-系统消息
*
* @since 2024-9-1 17:33:06
* @author Theo
@@ -15,8 +15,10 @@ import lombok.RequiredArgsConstructor;
@RequiredArgsConstructor
public enum NoticeTypeEnum implements IBaseEnum<Integer> {
SYSTEM_NOTICE(1, "系统通知"),
SYSTEM_MESSAGE (0, "系统消息");
/**
* 通知类型
*/
SYSTEM_MESSAGE(0, "系统消息");
@Getter
private Integer value;

View File

@@ -0,0 +1,28 @@
package com.youlai.boot.common.enums;
import com.youlai.boot.common.base.IBaseEnum;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
/**
* 通知方式枚举
* @author Theo
* @since 2024-9-2 14:32:58
*/
@Getter
@RequiredArgsConstructor
public enum NoticeWayEnum implements IBaseEnum<Integer> {
/**
* 通知方式
*/
WEBSOCKET("webSocket", "发送websocket消息");
private String value;
private String label;
NoticeWayEnum(String value, String label) {
this.value = value;
this.label = label;
}
}