消息详情
按 ID 看一条消息的完整内容。
| 请求方式 | GET/POST |
| 接口路径 | /api/message/detail |
| Content-Type | - |
| 鉴权 | X-Nideshop-Token |
请求参数
| 参数 | 类型 | 必填 | 位置 |
id | Integer | 否 | URL 参数 |
curl 调用
curl -s 'https://www.8shu8.com/api/message/detail?id=1' \
-H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN'
响应示例
{
"code": 200,
"message": "操作成功",
"success": true,
"data": {
"MSG_STATUS_NOT_VIEW": "...",
"MSG_STATUS_VIEW": "...",
"MSG_STATUS_SEND": "...",
"MSG_STATUS_CLICK": "...",
"MESSAGE_BUYER_COMMENT": "...",
"MESSAGE_SELLER_REPLY": "...",
"MESSAGE_BUYER_PAY": "...",
"MESSAGE_SELLER_DELIVERY": "...",
"MESSAGE_BUYER_CONFIRM": "...",
"MESSAGE_REFUND": "...",
"MESSAGE_HAS_GOODS": "...",
"MESSAGE_COMMENT_REPLY": "...",
"MESSAGE_BALANCE_NOT_ENOUGH": "...",
"id": "string",
"toUserId": 1,
"content": "string",
"fromDetail": "string",
"pageUrl": "string",
"messageStatus": 1,
"gmtCreated": 1,
"gmtSend": "string",
"gmtView": "string",
"gmtClick": "string",
"messageDicId": 1,
"tmpMessage": "string",
"picture": "string",
"addTime": "string"
}
}
返回字段(data)
| 字段 | 类型 | 说明 |
MSG_STATUS_NOT_VIEW | 对象 | - |
MSG_STATUS_VIEW | 对象 | - |
MSG_STATUS_SEND | 对象 | - |
MSG_STATUS_CLICK | 对象 | - |
MESSAGE_BUYER_COMMENT | 对象 | 买家对商品评论 |
MESSAGE_SELLER_REPLY | 对象 | - |
MESSAGE_BUYER_PAY | 对象 | - |
MESSAGE_SELLER_DELIVERY | 对象 | - |
MESSAGE_BUYER_CONFIRM | 对象 | - |
MESSAGE_REFUND | 对象 | - |
MESSAGE_HAS_GOODS | 对象 | - |
MESSAGE_COMMENT_REPLY | 对象 | - |
MESSAGE_BALANCE_NOT_ENOUGH | 对象 | - |
id | String | - |
toUserId | Long | - |
content | String | 内容 |
fromDetail | String | - |
pageUrl | String | - |
messageStatus | Integer | - |
gmtCreated | Long | - |
gmtSend | LocalDateTime | - |
gmtView | LocalDateTime | - |
gmtClick | LocalDateTime | - |
messageDicId | Integer | - |
tmpMessage | String | - |
picture | String | - |
addTime | LocalDateTime | - |