文档
测试

获取banner图和公告

POST
{{host}}index/index

请求头

参数名
类型
描述
必填
shopid
int
示例:9
必填
sid
int
示例:1
必填
token
string
示例:{{token}}
必填

响应参数

参数名
类型
描述
必填
code
int
示例:1
必填
msg
string
示例:获取成功
必填
time
string
示例:1607225226
必填
data
object
数据字典
必填
banner
array
数据列表
必填
id
int
示例:2
必填
title
string
示例:测试banner1
必填
image
string
示例:http://img.luojing.vip/uploads/20201128/FrJVHJoII1W_NyPYTF1VWpipkjqU.png
必填
content
string
示例:
必填
type
string
示例:1
必填
createtime
int
示例:1606803809
必填
updatetime
int
示例:1607224390
必填
f_time
int
示例:1606890182
必填
shop_id
int
示例:9
必填
store_id
int
示例:1
必填
type_text
string
示例:Type 1
必填
f_time_text
string
示例:2020-12-02 14:23:02
必填
notice
object
数据字典
必填
id
int
示例:1
必填
title
string
示例:测试广告
必填
image
string
示例:
必填
content
string
示例:测试广告爱大爱奥撒所多<img src="http://img.luojing.vip/uploads/20201206/Fo1lj2eQrwHlYs0sISgVXqHICG30.png" alt="" /><img src="http://img.luojing.vip/uploads/20201206/Fo1lj2eQrwHlYs0sISgVXqHICG30.png" alt="" />
必填
type
string
示例:2
必填
createtime
int
示例:1606803804
必填
updatetime
int
示例:1606803804
必填
f_time
int
示例:1606890182
必填
shop_id
int
示例:9
必填
store_id
int
示例:1
必填
type_text
string
示例:Type 2
必填
f_time_text
string
示例:2020-12-02 14:23:02
必填

说明 / 示例

{ "code": 1, "msg": "获取成功", "time": "1607225226", "data": { "banner": [ ==banner数组== { "id": 2, "title": "测试banner1", ==标题== "image": "http://img.luojing.vip/uploads/20201128/FrJVHJoII1W_NyPYTF1VWpipkjqU.png", ==banner图== "content": "", "type": "1", "createtime": 1606803809, "updatetime": 1607224390, "f_time": 1606890182, "shop_id": 9, "store_id": 1, "type_text": "Type 1", "f_time_text": "2020-12-02 14:23:02" }, { "id": 3, "title": "测试banner2", "image": "http://img.luojing.vip/uploads/20201128/FrJVHJoII1W_NyPYTF1VWpipkjqU.png", "content": "", "type": "1", "createtime": 1606803809, "updatetime": 1606803847, "f_time": 1606890182, "shop_id": 9, "store_id": 1, "type_text": "Type 1", "f_time_text": "2020-12-02 14:23:02" } ], "notice": { ==广告数组== "id": 1, "title": "测试广告", ==广告标题== "image": "", "content": "测试广告爱大爱奥撒所多<img src=\"http://img.luojing.vip/uploads/20201206/Fo1lj2eQrwHlYs0sISgVXqHICG30.png\" alt=\"\" /><img src=\"http://img.luojing.vip/uploads/20201206/Fo1lj2eQrwHlYs0sISgVXqHICG30.png\" alt=\"\" />", ==公告内容== "type": "2", "createtime": 1606803804, "updatetime": 1606803804, "f_time": 1606890182, "shop_id": 9, "store_id": 1, "type_text": "Type 2", "f_time_text": "2020-12-02 14:23:02" } } }