文档
测试

获取消息列表

POST
/api/options/getNoticeList

接口描述

获取消息列表

请求参数

参数名
类型
描述
必填
type
string
消息列表类型(1 点赞 2 3评论 回复 4 关注) 多个类型用逗号隔开 (1,2,3)
必填

响应参数

参数名
类型
描述
必填
sid
int
消息id
必填
message
string
提示消息
必填
target_params
string
跳转参数
必填
target_url
string
跳转地址
必填
status
int
状态 0 未读 1 已读
必填
back_content
string
评论回复的内容
必填
about_user_id
int
发起操作的用户
必填
type
int
类型
必填
add_time
int
时间戳
必填
about_user
array
用户信息
必填
nickname
string
昵称
必填
avatar
string
头像
必填
img
string
图片
必填
system_type
string
系统消息类型 1 纯文本无跳转 2 图片 3 纯文本带跳转
必填
about_type
int
关联内容类型
必填
about_id
int
关联内容ID
必填

说明 / 示例

``` { "status": 1, "data": { "total": 1, "per_page": 10, "current_page": 1, "last_page": 1, "data": [ { "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/1624335233463_3780.png" }, "img":"", "system_type":1 } ] }, "message": "成功", "code": 0 } ```