|
|
## 1、导购列表接口##
|
|
|
|
|
|
社区首页:社区频道和关注频道继续调用原本的接口, 导购频道用下面的新接口
|
|
|
|
|
|
导购频道下二级渠道列表的接口(app.grass.channelArticleList)
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
| uid | Integer | 是 | 380463 | 0 | 用户id |
|
|
|
| page | Integer | 否 | 1 | 1 | 页码 |
|
|
|
| limit | Integer | 否 | 1 | 10 | 每页显示条数 |
|
|
|
| lastedTime | String | 是 | "1548905701041" | null | 第一次请求或者刷新列表时不传, 接口会返回此字段,后续分页请求带上该字段值 |
|
|
|
| channelId | Integer | 否 | 5 | 无 | 二级渠道id(导购下默认推荐渠道channelId =5) |
|
|
|
|
|
|
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://api-test3.dev.yohocorp.com/?app_version=6.8.8&business_line=yohobuy&method=app.grass.channelArticleList&debug=XYZ&page=1&limit=20&uid=500031572
|
|
|
|
|
|
### 响应
|
|
|
code为200即为成功。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"lastedTime": "1548673065000",
|
|
|
"list": [
|
|
|
{
|
|
|
"articleId": 1410420,
|
|
|
"articleType": 1,
|
|
|
"authStatus": 1,
|
|
|
"authorHeadIco": "http://head.static.yhbimg.com/yhb-head/2019/05/30/10/011523437ca01f32190527de2a87adb957.jpg?imageView2/{mode}/w/{width}/h/{height}",
|
|
|
"authorName": "YOHO-3c6aeebdd",
|
|
|
"authorType": 1,
|
|
|
"authorUid": 500031858,
|
|
|
"content": "UFO商品发现好物",
|
|
|
"copyright": "原创",
|
|
|
"coverImage": "https://imgsocial.yohobuy.com/grassImg/2019/11/06/16/014f5cd98b165ac0ff25d16d641de09495.jpg?imageView2/{mode}/w/{width}/h/{height}",
|
|
|
"dataType": 1,
|
|
|
"favoriteCount": 1,
|
|
|
"hasFavor": "N",
|
|
|
"hasPraised": "N",
|
|
|
"identityAuthStatus": "N",
|
|
|
"imageHeight": "1080",
|
|
|
"imageWidth": "1080",
|
|
|
"isTop": 1,
|
|
|
"isTopicTop": 0,
|
|
|
"praiseCount": 3,
|
|
|
"publishTime": 1573030422709,
|
|
|
"publishTimeStr": "2019-11-06 16:53:42",
|
|
|
"recommendFlag": 1,
|
|
|
"sort": 1, //文章类型: 1 笔记 2长文章 3 跳转链接 4 视频
|
|
|
"coverImageType":1 //导购列表新增返回字段,1 小图模式(左图右字) 2 大图模式(上图下字)
|
|
|
},
|
|
|
{
|
|
|
"dataType": 2, //数据类型 1:文章 2资源位
|
|
|
"identityAuthStatus": "N",
|
|
|
"imageHeight": "500",
|
|
|
"imageWidth": "500",
|
|
|
"resourceSrc": "http://img10.static.yhbimg.com/yhb-img01/2019/05/28/16/01148342fa4444aec21c64bd05d4b1e5d1.png?imageView2/{mode}/w/{width}/h/{height}",
|
|
|
"resourceUrl": "http://gacha-yoho-dev.52toys.com?islogin=Y&type=16&openby:yohobuy={\"action\":\"go.h5\",\"params\":{\"param\":{\"type\":\"16\",\"islogin\":\"Y\"},\"type\":\"16\",\"islogin\":\"Y\",\"url\":\"http://gacha-yoho-dev.52toys.com\"}}"
|
|
|
}
|
|
|
],
|
|
|
"pageNo": 1,
|
|
|
"pageSize": 3,
|
|
|
"totalCount": 5,
|
|
|
"totalPage": 2
|
|
|
|
|
|
},
|
|
|
"message": "success"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
|
...
|
...
|
|