简要描述:
- 推广列表
请求域名:
- http://xx.com
请求URL:
GET/route=plugin.promotion-assistant.api.assistant.get-list
POST/route=plugin.promotion-assistant.api.assistant.get-list
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
page | 否 | int | 第几页 |
pagesize | 否 | int | 每次请求返回的条数,默认10 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"total": 2,
"per_page": "3",
"current_page": 1,
"last_page": 1,
"next_page_url": null,
"prev_page_url": null,
"from": 1,
"to": 2,
"data": [
{
"id": 4,
"uniacid": 1,
"member_id": 0,
"content_url": "https://mp.weixin.qq.com/s/5gGAUTyOq59H4gpk8Oiq6w",
"name": "刘亦菲",
"phone": "020-7788258",
"type": 3,
"goods_id": 1,
"share_title": "",
"share_desc": "",
"share_img": "",
"browse_amount": 0,
"created_at": "2020-06-02 15:26:33",
"updated_at": "2020-06-02 15:26:33"
},
{
"id": 3,
"uniacid": 1,
"member_id": 0,
"content_url": "https://mp.weixin.qq.com/s/5gGAUTyOq59H4gpk8Oiq6w",
"name": "刘亦菲",
"phone": "020-7788258",
"type": 3,
"goods_id": 1,
"share_title": "",
"share_desc": "",
"share_img": "",
"browse_amount": 0,
"created_at": "2020-06-02 15:23:42",
"updated_at": "2020-06-02 15:23:42"
}
]
}
}
错误时返回:
{
"result": 0,
"msg": "暂无数据",
"data": []
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
total | int | 一共有多少页 |
per_page | int | 没页的数量 |
current_page | int | 当前页码 |
data['id'] | int | 主键ID |
data['uniacid'] | int | |
data['member_id'] | int | 用户id |
data['content_url'] | string | 用户填写的链接 |
data['name'] | string | 用户填写的明称 |
data['phone'] | string | 用户填写的电话 |
data['type'] | int | 1=商城首页 2=商品分类 3=商品 |
data['goods_id'] | int | type=3时必填,商品的id |
data['share_title'] | string | 分享标题 |
data['share_desc'] | string | 分享描述 |
data['share_img'] | string | 分享图片 |
data['browse_amount'] | int | 浏览量 |
备注:
- 更多返回错误代码请看首页的错误代码描述