Appearance
功能概述
用户通知详情展示模块(会将未读消息自动标为已读)
接口访问
接口地址
user/notice/detail
请求方式 Method
GET
Header - Authorization Type : Bearer Token
| 属性 | 类型 | 长度 | 必填 | 默认值 | 说明 | 访问版本 |
|---|---|---|---|---|---|---|
| token | string | 32 | true | 用户身份标识令牌 | - |
请求参数
| 属性 | 类型 | 长度 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|---|
| noticeID | integer | 11 | true | 通知ID |
返回值
| 属性 | 类型 | 必填 | 说明 |
|---|---|---|---|
| id | integer | true | 通知ID |
| title | string | true | 通知标题 |
| description | string | true | 通知内容 |
| imageUrl | string | true | 通知图片地址 |
| noticeType | integer | true | 通知类型 |
| isRead | integer | true | 是否已读 |
| createTime | datetime | true | 创建时间 |
返回示例
{
"response": {
"id": 3,
"title": "会员资格已到期",
"description": "您的会员资格即将到期,请及时续费!",
"imageUrl": "",
"noticeType": 3,
"isRead": 1,
"createTime": "2024-12-30 17:30:42"
},
"requestId": "69593b8a-2ef8-4bbd-aa1b-0209b5f6e1af"
}错误码
| 错误码 | 错误描述 | 解决思路 |
|---|---|---|
| 10047 | 通知不存在 | noticeID不存在 |
| 10048 | 通知非该用户 | 不属于该Token的通知,不能修改 |
