chore: establish V1.1 recovery baseline
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
# Phase 11 Completion Report
|
||||
|
||||
## Status
|
||||
✅ Completed
|
||||
|
||||
## Implemented
|
||||
|
||||
### P11-T01 ~ P11-T12: 通知核心
|
||||
- [x] `Notification` 实体 + `NotificationMapper`
|
||||
- [x] `NotificationService` — 统一发送/幂等/异步/6种业务事件
|
||||
- [x] `NotificationController` — 4个API端点
|
||||
- [x] 通知类型:review/match/matchmaker/activity/risk/account/system
|
||||
|
||||
### 业务事件通知
|
||||
- [x] 审核结果通知(通过/未通过)
|
||||
- [x] 双向Match通知
|
||||
- [x] 有人喜欢我通知
|
||||
- [x] 活动报名结果通知
|
||||
- [x] 红娘推荐通知
|
||||
- [x] 风险警告通知
|
||||
- [x] 账号状态变更通知
|
||||
|
||||
### Miniapp 页面
|
||||
- [x] U25 通知中心 — 列表 + 未读数 + 全部已读 + 下拉刷新 + 分页
|
||||
|
||||
## Database Changes
|
||||
- 无新增迁移(V004 已包含 notifications 表)
|
||||
|
||||
## API Changes
|
||||
新增接口:
|
||||
| Method | Path | 描述 |
|
||||
|---|---|---|
|
||||
| GET | /notifications | 通知列表 |
|
||||
| PUT | /notifications/{id}/read | 标记已读 |
|
||||
| PUT | /notifications/read-all | 全部已读 |
|
||||
| GET | /notifications/unread-count | 未读数 |
|
||||
|
||||
## Tests
|
||||
- `NotificationServiceTest`: 3 个用例
|
||||
|
||||
## Security Review
|
||||
- [x] 通知幂等(5分钟窗口去重)
|
||||
- [x] 站外通知失败不影响核心业务(异步发送)
|
||||
- [x] 系统通知和Chat分离(独立通知表)
|
||||
- [x] 未读数一致(数据库COUNT为准)
|
||||
|
||||
## Known Issues
|
||||
- 微信订阅消息Adapter为占位实现(Phase 11后续完善)
|
||||
|
||||
## Next Phase
|
||||
Phase 12: 关系状态(Paused/GettingToKnow/Successful双确认)
|
||||
Reference in New Issue
Block a user