mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2026-05-13 15:12:09 +08:00
update 重构 common-sse 与 common-websocket 合并为 ruoyi-common-push 推送模块
update 优化 通知公告页面增加查看详情功能 支持预览已经编辑好的富文本内容 update 优化 消息盒子相关消息可直接跳转到详情页展示富文本内容 update 完成消息盒子功能前后端联动(已读未读在前端浏览器存储) update 工作流消息推送增加前端路由跳转
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
package org.dromara.common.core.enums;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* 推送消息来源枚举
|
||||
*
|
||||
* @author Lion Li
|
||||
*/
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum PushSourceEnum {
|
||||
|
||||
/**
|
||||
* 后端系统消息
|
||||
*/
|
||||
BACKEND("backend"),
|
||||
|
||||
/**
|
||||
* 通知公告
|
||||
*/
|
||||
NOTICE("notice"),
|
||||
|
||||
/**
|
||||
* 工作流
|
||||
*/
|
||||
WORKFLOW("workflow"),
|
||||
|
||||
/**
|
||||
* 大模型
|
||||
*/
|
||||
LLM("llm"),
|
||||
|
||||
/**
|
||||
* 客户端消息
|
||||
*/
|
||||
CLIENT("client");
|
||||
|
||||
private final String source;
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package org.dromara.common.core.enums;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* 推送消息类型枚举
|
||||
*
|
||||
* @author Lion Li
|
||||
*/
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum PushTypeEnum {
|
||||
|
||||
/**
|
||||
* 通用消息
|
||||
*/
|
||||
MESSAGE("message"),
|
||||
|
||||
/**
|
||||
* 通知公告
|
||||
*/
|
||||
NOTICE("notice"),
|
||||
|
||||
/**
|
||||
* 大模型消息
|
||||
*/
|
||||
LLM("llm"),
|
||||
|
||||
/**
|
||||
* 自定义消息
|
||||
*/
|
||||
CUSTOM("custom");
|
||||
|
||||
private final String type;
|
||||
}
|
||||
Reference in New Issue
Block a user