docs: update notification api payload

This commit is contained in:
qingfeng 2026-04-16 17:35:21 +08:00
parent 72ce8dd03d
commit 993fc9d414

View File

@ -103,6 +103,8 @@
|------|-------------|---------------|
| like | post | 被点赞的内容 IDpost._id |
| comment | post | 被评论的内容 IDpost._id |
| mention | post | @ 提及所在的内容 IDpost._id |
| creator_publish | post | 创作者新发布内容 IDpost._id |
| follow | user | 关注者的用户 IDuser._id |
| subscription | user | 订阅者的用户 IDuser._id |
| purchase | order | 订阅订单 IDsubscription_order._id |
@ -139,13 +141,14 @@
| list | array | 通知列表 |
| list[].notificationId | string | 通知ID |
| list[].category | string | 分类 |
| list[].type | string | 具体类型like/comment/subscription/follow/purchase/ppv_unlock/system |
| list[].type | string | 具体类型like/comment/mention/creator_publish/subscription/follow/purchase/ppv_unlock/system |
| list[].title | string | 通知标题 |
| list[].content | string | 通知内容 |
| list[].sender | object/null | 触发者信息 |
| list[].sender.userId | string | 触发者ID |
| list[].sender.nickname | string | 昵称 |
| list[].sender.avatar | url | 头像 |
| list[].coverUrl | url | 关联内容封面;当 relatedType=post 且可解析到内容封面时返回 |
| list[].relatedId | string | 关联对象ID含义见下表 |
| list[].relatedType | string | 关联类型post/user/order |
| list[].isRead | boolean | 是否已读 |