update 重构 common-sse 与 common-websocket 合并为 ruoyi-common-push 推送模块

update 优化 通知公告页面增加查看详情功能 支持预览已经编辑好的富文本内容
update 优化 消息盒子相关消息可直接跳转到详情页展示富文本内容
update 完成消息盒子功能前后端联动(已读未读在前端浏览器存储)
update 工作流消息推送增加前端路由跳转
This commit is contained in:
疯狂的狮子Li
2026-03-27 19:42:28 +08:00
parent fb5b5aed29
commit 58afbf3ebf
62 changed files with 1672 additions and 921 deletions

View File

@@ -1017,9 +1017,50 @@ comment on column sys_notice.remark is '备注';
insert into sys_notice values('1', '温馨提醒2018-07-01 新版本发布啦', '2', '新版本内容', '0', 103, 1, sysdate, null, null, '管理员');
insert into sys_notice values('2', '维护通知2018-07-01 系统凌晨维护', '1', '维护内容', '0', 103, 1, sysdate, null, null, '管理员');
-- ----------------------------
-- 18、消息记录表
-- ----------------------------
create table sys_message (
message_id number(20) not null,
category varchar2(32) not null,
type varchar2(32) not null,
source varchar2(32) not null,
title varchar2(100) not null,
message varchar2(500) default null,
content varchar2(2000) default null,
data_json clob default null,
path varchar2(255) default null,
send_user_ids varchar2(1000) not null,
create_dept number(20) default null,
create_by number(20) default null,
create_time date,
update_by number(20) default null,
update_time date
);
alter table sys_message add constraint pk_sys_message primary key (message_id);
create index idx_sys_message_category_time on sys_message(category, create_time);
comment on table sys_message is '消息记录表';
comment on column sys_message.message_id is '消息ID';
comment on column sys_message.category is '消息分组(system/notice/workflow)';
comment on column sys_message.type is '消息类型';
comment on column sys_message.source is '消息来源';
comment on column sys_message.title is '标题';
comment on column sys_message.message is '摘要消息';
comment on column sys_message.content is '详细内容';
comment on column sys_message.data_json is '扩展数据JSON';
comment on column sys_message.path is '前端跳转路径';
comment on column sys_message.send_user_ids is '目标用户ID串0表示全局';
comment on column sys_message.create_dept is '创建部门';
comment on column sys_message.create_by is '创建者';
comment on column sys_message.create_time is '创建时间';
comment on column sys_message.update_by is '更新者';
comment on column sys_message.update_time is '更新时间';
-- ----------------------------
-- 18、代码生成业务表
-- 19、代码生成业务表
-- ----------------------------
create table gen_table (
table_id number(20) not null,

View File

@@ -1015,9 +1015,51 @@ comment on column sys_notice.remark is '备注';
insert into sys_notice values('1', '温馨提醒2018-07-01 新版本发布啦', '2', '新版本内容', '0', 103, 1, now(), null, null, '管理员');
insert into sys_notice values('2', '维护通知2018-07-01 系统凌晨维护', '1', '维护内容', '0', 103, 1, now(), null, null, '管理员');
-- ----------------------------
-- 18、消息记录表
-- ----------------------------
create table if not exists sys_message
(
message_id int8,
category varchar(32) not null,
type varchar(32) not null,
source varchar(32) not null,
title varchar(100) not null,
message varchar(500) default null::varchar,
content varchar(2000) default null::varchar,
data_json text,
path varchar(255) default null::varchar,
send_user_ids varchar(1000) not null,
create_dept int8,
create_by int8,
create_time timestamp,
update_by int8,
update_time timestamp,
constraint sys_message_pk primary key (message_id)
);
create index if not exists idx_sys_message_category_time on sys_message (category, create_time);
comment on table sys_message is '消息记录表';
comment on column sys_message.message_id is '消息ID';
comment on column sys_message.category is '消息分组(system/notice/workflow)';
comment on column sys_message.type is '消息类型';
comment on column sys_message.source is '消息来源';
comment on column sys_message.title is '标题';
comment on column sys_message.message is '摘要消息';
comment on column sys_message.content is '详细内容';
comment on column sys_message.data_json is '扩展数据JSON';
comment on column sys_message.path is '前端跳转路径';
comment on column sys_message.send_user_ids is '目标用户ID串0表示全局';
comment on column sys_message.create_dept is '创建部门';
comment on column sys_message.create_by is '创建者';
comment on column sys_message.create_time is '创建时间';
comment on column sys_message.update_by is '更新者';
comment on column sys_message.update_time is '更新时间';
-- ----------------------------
-- 18、代码生成业务表
-- 19、代码生成业务表
-- ----------------------------
create table if not exists gen_table
(

View File

@@ -763,9 +763,32 @@ create table sys_notice (
insert into sys_notice values('1', '温馨提醒2018-07-01 新版本发布啦', '2', '新版本内容', '0', 103, 1, sysdate(), null, null, '管理员');
insert into sys_notice values('2', '维护通知2018-07-01 系统凌晨维护', '1', '维护内容', '0', 103, 1, sysdate(), null, null, '管理员');
-- ----------------------------
-- 18、消息记录表
-- ----------------------------
create table sys_message (
message_id bigint(20) not null comment '消息ID',
category varchar(32) not null comment '消息分组(system/notice/workflow)',
type varchar(32) not null comment '消息类型',
source varchar(32) not null comment '消息来源',
title varchar(100) not null comment '标题',
message varchar(500) default null comment '摘要消息',
content varchar(2000) default null comment '详细内容',
data_json text comment '扩展数据JSON',
path varchar(255) default null comment '前端跳转路径',
send_user_ids varchar(1000) not null comment '目标用户ID串0表示全局',
create_dept bigint(20) default null comment '创建部门',
create_by bigint(20) default null comment '创建者',
create_time datetime comment '创建时间',
update_by bigint(20) default null comment '更新者',
update_time datetime comment '更新时间',
primary key (message_id),
key idx_sys_message_category_time (category, create_time)
) engine=innodb comment = '消息记录表';
-- ----------------------------
-- 18、代码生成业务表
-- 19、代码生成业务表
-- ----------------------------
create table gen_table (
table_id bigint(20) not null comment '编号',