发布更新公告
发版时写一条公告,用户下次打开客户端就能看到。
| 请求方式 | POST |
| 接口路径 | /api/index/updateNotice/save |
| Content-Type | application/json |
| 鉴权 | X-Nideshop-Token |
请求体字段
| 字段 | 类型 | 必填 | 说明 |
id | Integer | 否 | - |
title | String | 否 | - |
content | String | 否 | - |
version | String | 否 | - |
platform | String | 否 | web / android / all |
enabled | Integer | 否 | 1启用 0禁用 |
publishTime | LocalDateTime | 否 | - |
addTime | LocalDateTime | 否 | - |
curl 调用
curl -s 'https://www.8shu8.com/api/index/updateNotice/save' \
-H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"serialVersionUID": 1,
"id": 1,
"title": "string",
"content": "string",
"version": "string",
"platform": "string",
"enabled": 1,
"publishTime": "string",
"addTime": "string"
}'
响应示例
{
"code": 200,
"message": "操作成功",
"success": true,
"data": {
"serialVersionUID": 1,
"id": 1,
"title": "string",
"content": "string",
"version": "string",
"platform": "string",
"enabled": 1,
"publishTime": "string",
"addTime": "string"
}
}
返回字段(data)
| 字段 | 类型 | 说明 |
id | Integer | - |
title | String | - |
content | String | - |
version | String | - |
platform | String | web / android / all |
enabled | Integer | 1启用 0禁用 |
publishTime | LocalDateTime | - |
addTime | LocalDateTime | - |