文档
测试

获取消息未读数量

POST
/api/options/getNoReadNumber

接口描述

获取未读的消息数量

响应参数

参数名
类型
描述
必填
unread
int
未读数量
必填
name
string
名称
必填
icon
string
icon
必填
tips
array
第一条消息
必填
sid
int
ID
必填
message
string
消息内容
必填
about_user
array
用户信息
必填
nickname
string
昵称
必填
avatar
string
头像
必填
type
int
类型 1 点赞 2 3 评论 回复 4 关注 99 系统消息
必填

说明 / 示例

``` { "status": 1, "data": [ { "unread": 1, "type": 1, "name": "赞", "icon": "https://zbtxzb.oss-cn-beijing.aliyuncs.com/icon/dianzan.png", "tips": { "sid": 1, "message": "给你点了赞", "target_params": "", "target_url": "", "status": 0, "back_content": "", "about_user_id": 10, "type": 1, "add_time": 1624343603, "about_user": { "nickname": "卯兑688", "avatar": "https://zbtxzb.oss-cn-beijing.aliyuncs.com/header/1624348118495_7649.png" } } }, { "unread": 1, "type": 2, "name": "动态评论", "icon": "https://zbtxzb.oss-cn-beijing.aliyuncs.com/icon/dongtai.png", "tips": { "sid": 2, "message": "评论了你", "target_params": "", "target_url": "", "status": 0, "back_content": "", "about_user_id": 8, "type": 2, "add_time": 1624343603, "about_user": { "nickname": "野王的霸霸", "avatar": "https://zbtxzb.oss-cn-beijing.aliyuncs.com/header/1623912792863_9281.jpg" } } }, { "unread": 1, "type": 4, "name": "新鲜播报", "icon": "https://zbtxzb.oss-cn-beijing.aliyuncs.com/icon/guanzhubobao.png", "tips": { "sid": 3, "message": "关注了你", "target_params": "", "target_url": "", "status": 0, "back_content": "", "about_user_id": 5, "type": 4, "add_time": 1624343603, "about_user": { "nickname": "野王的麻麻", "avatar": "/Public/Upload/User/20210604/60b9e5e2ddf0b.jpeg" } } }, { "unread": 0, "type": 99, "name": "系统消息", "icon": "https://zbtxzb.oss-cn-beijing.aliyuncs.com/icon/xitong.png", "tips": [] } ], "message": "成功", "code": 0 } ```