文档
测试

公告接口

GET
http://localhost:8081/api/v1/notice/newsList?pageIndex=1&pageSize=10

请求头

参数名
类型
描述
必填
Authorization
String
访问口令{token}
必填
Content-Type
String
数据协议,默认-application/json
必填

请求参数

参数名
类型
描述
必填
pageIndex
int
页码(必填)
必填
pageSize
int
每页多少条 (必填)
必填

响应参数

参数名
类型
描述
必填
status
String
响应状态码(200代表成功,反之视为失败)
必填
message
String
详细信息<中文>
必填
result
Object
数据结构体
必填
code
String
详细信息<英文>
必填

说明 / 示例

{ "code": "OK", "message": "OK", "result": { "news": [ { "contents": "防止恢复供气或可能提前恢复供气时发生泄漏,如有疑问请拨打燃气客服电话96177询问,若遇雨雪天气,停气时间顺延", "createTime": "2020-03-23 14:35:35", "id": 6, "isRead": 0, "subtitle": "3月15日21:00时至次日5:00时,金山路以南,银山路以北,鸭绿江街以西,陵园街以东地区停气。", "title": "请注意查看!停气通知!", "titleIcon": "https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=99748134,35961783&fm=26&gp=0.jpg", "type": 0 }, { "contents": "防止恢复供气或可能提前恢复供气时发生泄漏,如有疑问请拨打燃气客服电话96177询问,若遇雨雪天气,停气时间顺延", "createTime": "2020-03-23 14:35:35", "id": 4, "isRead": 0, "subtitle": "3月15日21:00时至次日5:00时,金山路以南,银山路以北,鸭绿江街以西,陵园街以东地区停气。", "title": "请注意查看!停气通知!", "titleIcon": "https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=99748134,35961783&fm=26&gp=0.jpg", "type": 0 } ], "total": 2 }, "status": 200 }