Files
dax-pay/_config/sql/update-datas.sql
DaxPay Dev 4d619e4c28 feat(notify): 新增站内通知模块(公告管理 + 用户端铃铛 + SSE 实时推送)
- 新建 service-notify 模块: 公告广播(notify_notice)+已读表(notify_notice_read), 预留个人消息表(notify_message)
- 管理端: CRUD/发布/下线/详情/分页
- 用户端: 未读数/铃铛列表/标记已读/全部已读/忽略
- SSE 实时推送: 发布公告时推送给所有在线用户, 25s 心跳保活
- i18n(zh/en): 枚举与业务错误消息
- 菜单与权限码(system:notify:notice:add/publish/view)
2026-06-24 15:52:16 +08:00

16 lines
960 B
SQL

-- 通知模块菜单数据(增量, 幂等)
-- 执行顺序: update-tables.sql -> update-datas.sql
-- 字段顺序同 iam_perm_menu: id, pid, menu_code, client_code, name, title_cn, title_en,
-- i18n_key, icon, hidden, hide_children_menu, component, path, redirect, sort_no,
-- root, keep_alive, affix_tab, creator, last_modifier, version, deleted, menu_type,
-- active_icon, badge, badge_type, badge_variants, iframe_src, link, create_time, last_modified_time
-- 公告通知菜单(挂在系统管理 id=3 下, 与配置/日志/权限同级)
INSERT INTO "iam_perm_menu" VALUES (
309, 3, 'system:notify', 'admin', 'SystemNotify', '公告通知', 'Notification',
'menu.system.notify', 'lucide:bell', false, false,
'/system/notify/notice/NoticeList', '/system/notify', NULL, 20,
false, true, false, 1, 1, 0, false, 'menu', NULL, NULL, NULL, NULL, NULL,
'2026-06-24 16:00:00+00', '2026-06-24 16:00:00+00'
) ON CONFLICT (id) DO NOTHING;