文档
测试

获取通知

GET
http://localhost:520/api/notify?type=all&read=true&page=1&pageSize=10

请求参数

参数名
类型
描述
必填
type
string
示例:all or comment or system or atme 通知类型
必填
read
string
示例:true or false 可选 通知是否已读
必填
page
int
示例:1 当前页
必填
pageSize
int
示例:10 当前页 大小
必填

响应参数

参数名
类型
描述
必填
code
int
示例:0
必填
msg
string
示例:sucess
必填
data
object
数据字典
必填
page
int
示例:1
必填
pageSize
int
示例:10
必填
total
int
示例:1
必填
list
array
数据列表
必填
content
string
示例:<a href='https://lceda.cn/lpl' target='_blank' style='text-decoration: none; color:#58f;'>lck</a> 关注了你
必填
status
string
示例:read or unread 通知状态。是否已读
必填
type
string
示例:focus 通知类型:like focus 对应爱心 system 对应小喇叭 project 对应项目图标
必填
created_at
string
示例:2020-11-24T10:20:13.000Z
必填
updated_at
string
示例:2020-11-24T10:20:17.000Z
必填
id
number
实例
必填

说明 / 示例

```json { "code": 0, "msg": "success", "data": { "page": 1, "pageSize": 10, "total": 1, "list": [ { "content": "<a href='https://lceda.cn/aiwa' target='_blank' style='text-decoration: none; color:#58f;'>aiwa</a> 评论了工程 <a href='https://lceda.cn/lcedaxiaoju/ba-yin' target='_blank' style='text-decoration: none; color:#58f;'> 八音电子琴-爱华</a> : 自己评论自己的项目。", "id": 8, "status": "unread", "type": "comment", "created_at": "2020-11-26T13:59:55.000Z", "updated_at": "2020-11-26T13:59:59.000Z" } ] } } ```