文档
测试

用户消息分页

GET
/user/api/message/page

接口描述

按指定类型获取用户消息分页

请求头

参数名
类型
描述
必填
Anthorization
string
Bearer ssssssss
必填

请求参数

参数名
类型
描述
必填
type
int
消息类型(1:提醒;2:公告;3:订货;4:通知)
必填

响应参数

参数名
类型
描述
必填
code
number
示例:0
必填
msg
string
示例:操作成功
必填
data
object
数据字典
必填
records
array
数据列表
必填
id
number
消息记录ID
必填
userId
number
用户ID
必填
type
number
消息类型
必填
read
number
是否已读(0:未读;1:已读)
必填
title
string
消息标题
必填
content
string
消息内容
必填
businessTime
string
业务时间
必填
createTime
string
示例:2020-02-17 16:21:30
必填
updateTime
string
示例:2020-02-17 16:21:35
必填
delFlag
number
示例:0
必填
total
number
示例:1
必填
size
number
示例:10
必填
current
number
示例:1
必填
orders
array
数据列表
必填
searchCount
boolean
示例:true
必填
pages
number
示例:1
必填

说明 / 示例

GET /user/api/message/page?type=1 HTTP/1.1 Host: localhost:9999 Authorization: Bearer 3f9b9adb-cc60-40e0-b37f-3cb979d662a9 ```json { "code": 0, "msg": "操作成功", "data": { "records": [ { "id": 1, "userId": 1, "type": 1, "read": 0, "title": "实名认证通过", "content": "实名认证通过审核", "businessTime": "2020-02-17 16:21:19", "createTime": "2020-02-17 16:21:30", "updateTime": "2020-02-17 16:21:35", "delFlag": 0 } ], "total": 1, "size": 10, "current": 1, "orders": [], "searchCount": true, "pages": 1 } } ```