zhengwr
5f0b2d2c7b
F2-11: 消息中心后端 — NoticeController + 单测 + 报告
- 新增 NoticeController(platform-metadata):4 个端点
GET /api/notice(分页列表,支持 unreadOnly)
GET /api/notice/unread-count(轻量未读数,顶栏轮询)
POST /api/notice/{id}/read(单条置已读)
POST /api/notice/read-all(全部已读)
- 数据源:eip3.sys_message + sys_messageuser(279,951 行)
- 身份:UserSession.get() + LoggedInUser.CURRENTUSER(不依赖 platform-auth)
- SQL CAST(? AS character(36)) 确保 sys_messageuser_sys_user_id 索引命中
explain 实测:Bitmap Index Scan,cost=6.69
- 单测 11/11(mock UserSession,不连库)
- 报告:docs/P1/F2-11消息中心报告.md
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 02:26:53 +08:00
..
2026-06-12 02:26:53 +08:00
2026-06-12 01:29:08 +08:00
2026-06-11 11:26:44 +08:00
2026-06-11 11:26:44 +08:00
2026-06-11 11:26:44 +08:00
2026-06-12 02:05:45 +08:00