Authored by 张帅

新增接口文档

## 提供给商品详情页的接口, 响应内容总数和详情页内容封面图##
提供给商品详情页的接口, 响应内容总数和详情页内容封面图=app.grass.simpleProductArticle
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
| uid | Integer | 是 | 1 | 1 | 用户uid |
| productSkn | Integer | 否 | | | 商品skn |
| productType | Integer | 否 | | | 商品类型, 1 有货商品 2 ufo商品 |
注意,通用的头部没有列出。
请求示例
http://api-test3.dev.yohocorp.com/?app_version=6.9.17&business_line=yohobuy&method=app.grass.simpleProductArticle&udid=861243048197754cd2de191342aa531&debug=XYZ&uid=500031572&client_type=android&productSkn=512589648&productType=1
### 响应
code为200即为成功。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"list": [
{
"articleId": 140090,
"coverImage": "http://img10.static.yhbimg.com/grassImg/2019/02/25/16/01ecf220f172f485f3dea1a25ca20367b4.jpg?imageView2/{mode}/w/{width}/h/{height}",
"dataType": 1,
"identityAuthStatus": "N",
"imageHeight": "1488",
"imageWidth": "1984"
},
{
"articleId": 140088,
"coverImage": "http://img11.static.yhbimg.com/grassImg/2019/02/25/15/016f0e54d55ea6be2c3d68e11e214bd013.jpg?imageView2/{mode}/w/{width}/h/{height}",
"dataType": 1,
"identityAuthStatus": "N",
"imageHeight": "1488",
"imageWidth": "1984"
},
{
"articleId": 140086,
"coverImage": "http://img10.static.yhbimg.com/grassImg/2019/02/25/15/01fc64ef7ed5e2acd2083fb90f4ce96b8b.jpg?imageView2/{mode}/w/{width}/h/{height}",
"dataType": 1,
"identityAuthStatus": "N",
"imageHeight": "1488",
"imageWidth": "1984"
},
{
"articleId": 140084,
"coverImage": "http://img10.static.yhbimg.com/grassImg/2019/02/25/15/01c5617e0ff07544060216780172bb23be.jpg?imageView2/{mode}/w/{width}/h/{height}",
"dataType": 1,
"identityAuthStatus": "N",
"imageHeight": "1984",
"imageWidth": "1488"
}
],
"total": 6 //文章总数
},
"md5": "f6319404019248097fa09a0aac559665",
"message": "操作成功"
}
```
## 2、全部内容接口##
全部内容接口, 响应同瀑布流(app.grass.productArticleList)
#### 请求参数
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|:-------| -----:|-----:|-----:|-----:|----:|
| uid | Integer | 是 | 1 | 1 | 用户uid |
| productSkn | Integer | 否 | | | 商品skn |
| productType | Integer | 否 | | | 商品类型, 1 有货商品 2 ufo商品 |
| page | Integer | 否 | 1 | 1 | 页码 |
| limit | Integer | 否 | 1 | 10 | 每页显示条数 |
| lastedTime | String | 是 | "1548905701041" | null | 第一次请求或者刷新列表时不传, 接口会返回此字段,后续分页请求带上该字段值 |
注意,通用的头部没有列出。
请求示例
http://api-test3.dev.yohocorp.com/?app_version=6.9.17&business_line=yohobuy&method=app.grass.productArticleList&udid=861243048197754cd2de191342aa531&debug=XYZ&uid=500031572&client_type=android&productSkn=512589648&productType=1&page=1&limit
### 响应
code为200即为成功。
响应JSON格式如下所示:
```json
{
"code": 200,
"data": {
{
"lastedTime": "1551085098434",
"list": [
{
"articleId": 140090,
"articleType": 1,
"authStatus": 1,
"authorHeadIco": "http://img11.static.yhbimg.com/yhb-img01/2016/07/05/13/017ec560b82c132ab2fdb22f7cf6f42b83.png?imageView/{mode}/w/{width}/h/{height}",
"authorName": "",
"authorType": 1,
"authorUid": 500031928,
"content": "童可可恶露饿了",
"copyright": "原创",
"coverImage": "http://img10.static.yhbimg.com/grassImg/2019/02/25/16/01ecf220f172f485f3dea1a25ca20367b4.jpg?imageView2/{mode}/w/{width}/h/{height}",
"dataType": 1,
"favoriteCount": 3,
"hasFavor": "N",
"hasPraise": "N",
"hasPraised": "N",
"identityAuthStatus": "N",
"imageHeight": "1488",
"imageWidth": "1984",
"isTop": 0,
"isTopicTop": 0,
"praiseCount": 66,
"publishTime": 1551085098434,
"publishTimeStr": "2019-02-25 16:58:18",
"recommendFlag": 1,
"sort": 1
},
{
"articleId": 140088,
"articleType": 1,
"authStatus": 1,
"authorHeadIco": "http://img11.static.yhbimg.com/yhb-img01/2016/07/05/13/017ec560b82c132ab2fdb22f7cf6f42b83.png?imageView/{mode}/w/{width}/h/{height}",
"authorName": "",
"authorType": 1,
"authorUid": 500031928,
"content": "恶露饿了吧服了饿了不了不可听觉哭的图册打他扶额酷不酷答复现阿轲不饿补补嘟啊嘟嘴阿轲不测特鲁大师扶额可苦可乐不塌可恶咳咳咳他不特鲁可疼了八路乐途客服了附近不测特KTV的跨服不发扶她饿不阿拉嘟啊嘟刻苦啊特特他不阿德不测他的啊服了太绝了剧毒快乐同乐同乐福不不不侧踏扶她饿不饿不服测测AK补虐卡特拒绝路哭了多久补聚聚推荐!阿拉饿了他啊嘟嘟嘟特服阿轲不饿特步侧部肚肚饿绝句发了饿了不饿不饿不额绝句剧毒吐的绝句福不可特特哭了吐了咳咳咳特鲁绝JOJO裤头LOL饿酷酷哒特特路饿不饿不饿略略略虐了热略略略夸他落楼哦觉咯图恩透露了6天了噜服了剧毒┗┃・ ■ ・┃┛不可吐了军绿路疼哭了略读付款了屠夫额可痛苦了童可可路8",
"copyright": "原创",
"coverImage": "http://img11.static.yhbimg.com/grassImg/2019/02/25/15/016f0e54d55ea6be2c3d68e11e214bd013.jpg?imageView2/{mode}/w/{width}/h/{height}",
"dataType": 1,
"favoriteCount": 1,
"hasFavor": "N",
"hasPraise": "N",
"hasPraised": "N",
"identityAuthStatus": "N",
"imageHeight": "1488",
"imageWidth": "1984",
"isTop": 0,
"isTopicTop": 0,
"praiseCount": 74,
"publishTime": 1551079205646,
"publishTimeStr": "2019-02-25 15:20:05",
"recommendFlag": 1,
"sort": 1
},
{
"articleId": 140086,
"articleType": 1,
"authStatus": 1,
"authorHeadIco": "http://img11.static.yhbimg.com/yhb-img01/2016/07/05/13/017ec560b82c132ab2fdb22f7cf6f42b83.png?imageView/{mode}/w/{width}/h/{height}",
"authorName": "",
"authorType": 1,
"authorUid": 500031928,
"content": "恶露饿了吧服了饿了不了不可听觉哭的图册打他扶额酷不酷答复现阿轲不饿补补嘟啊嘟嘴阿轲不测特鲁大师扶额可苦可乐不塌可恶咳咳咳他不特鲁可疼了八路乐途客服了附近不测特KTV的跨服不发扶她饿不阿拉嘟啊嘟刻苦啊特特他不阿德不测他的啊服了太绝了剧毒快乐同乐同乐福不不不侧踏扶她饿不饿不服测测AK补虐卡特拒绝路哭了多久补聚聚推荐!阿拉饿了他啊嘟嘟嘟特服阿轲不饿特步侧部肚肚饿绝句发了饿了不饿不饿不额绝句剧毒吐的绝句福不可特特哭了吐了咳咳咳特鲁绝JOJO裤头LOL饿酷酷哒特特路饿不饿不饿略略略虐了热略略略夸他落楼哦觉咯图恩透露了6天了噜服了剧毒┗┃・ ■ ・┃┛不可吐了军绿路疼哭了略读付款了屠夫额可痛苦了童可可路8",
"copyright": "原创",
"coverImage": "http://img10.static.yhbimg.com/grassImg/2019/02/25/15/01fc64ef7ed5e2acd2083fb90f4ce96b8b.jpg?imageView2/{mode}/w/{width}/h/{height}",
"dataType": 1,
"favoriteCount": 1,
"hasFavor": "N",
"hasPraise": "N",
"hasPraised": "N",
"identityAuthStatus": "N",
"imageHeight": "1488",
"imageWidth": "1984",
"isTop": 0,
"isTopicTop": 0,
"praiseCount": 68,
"publishTime": 1551079160575,
"publishTimeStr": "2019-02-25 15:19:20",
"recommendFlag": 1,
"sort": 1
},
{
"articleId": 140084,
"articleType": 1,
"authStatus": 1,
"authorHeadIco": "http://img11.static.yhbimg.com/yhb-img01/2016/07/05/13/017ec560b82c132ab2fdb22f7cf6f42b83.png?imageView/{mode}/w/{width}/h/{height}",
"authorName": "",
"authorType": 1,
"authorUid": 500031928,
"content": "恶露饿了吧服了饿了不了不可听觉哭的图册打他扶额酷不酷答复现阿轲不饿补补嘟啊嘟嘴阿轲不测特鲁大师扶额可苦可乐不塌可恶咳咳咳他不特鲁可疼了八路乐途客服了附近不测特KTV的跨服不发扶她饿不阿拉嘟啊嘟刻苦啊特特他不阿德不测他的啊服了太绝了剧毒快乐同乐同乐福不不不侧踏扶她饿不饿不服测测AK补虐卡特拒绝路哭了多久补聚聚推荐!阿拉饿了他啊嘟嘟嘟特服阿轲不饿特步侧部肚肚饿绝句发了饿了不饿不饿不额绝句剧毒吐的绝句福不可特特哭了吐了咳咳咳特鲁绝JOJO裤头LOL饿酷酷哒特特路饿不饿不饿略略略虐了热略略略夸他落楼哦觉咯图恩透露了6天了噜服了剧毒┗┃・ ■ ・┃┛不可吐了军绿路疼哭了略读付款了屠夫额可痛苦了童可可路8",
"copyright": "原创",
"coverImage": "http://img10.static.yhbimg.com/grassImg/2019/02/25/15/01c5617e0ff07544060216780172bb23be.jpg?imageView2/{mode}/w/{width}/h/{height}",
"dataType": 1,
"favoriteCount": 0,
"hasFavor": "N",
"hasPraise": "N",
"hasPraised": "N",
"identityAuthStatus": "N",
"imageHeight": "1984",
"imageWidth": "1488",
"isTop": 0,
"isTopicTop": 0,
"praiseCount": 21,
"publishTime": 1551079056499,
"publishTimeStr": "2019-02-25 15:17:36",
"recommendFlag": 1,
"sort": 1
},
{
"articleId": 140026,
"articleType": 1,
"authStatus": 1,
"authorHeadIco": "http://img11.static.yhbimg.com/yhb-img01/2016/07/05/13/017ec560b82c132ab2fdb22f7cf6f42b83.png?imageView/{mode}/w/{width}/h/{height}",
"authorName": "",
"authorType": 1,
"authorUid": 500031928,
"content": "花灯,中华门城堡",
"copyright": "原创",
"coverImage": "http://img10.static.yhbimg.com/grassImg/2019/02/25/10/015d0501b458d8e6fb31997f65eaac19d0.jpg?imageView2/{mode}/w/{width}/h/{height}",
"dataType": 1,
"favoriteCount": 1,
"hasFavor": "N",
"hasPraise": "N",
"hasPraised": "N",
"identityAuthStatus": "N",
"imageHeight": "1984",
"imageWidth": "1488",
"isTop": 0,
"isTopicTop": 0,
"praiseCount": 93,
"publishTime": 1551061952660,
"publishTimeStr": "2019-02-25 10:32:32",
"recommendFlag": 1,
"sort": 1
},
{
"articleId": 140024,
"articleType": 1,
"authStatus": 1,
"authorHeadIco": "http://img11.static.yhbimg.com/yhb-img01/2016/07/05/13/017ec560b82c132ab2fdb22f7cf6f42b83.png?imageView/{mode}/w/{width}/h/{height}",
"authorName": "",
"authorType": 1,
"authorUid": 500031928,
"content": "花他特略略略略了额略略特",
"copyright": "原创",
"coverImage": "http://img10.static.yhbimg.com/grassImg/2019/02/25/10/01b8c270bc6fe5cc94a04e4eb760c1bef8.jpg?imageView2/{mode}/w/{width}/h/{height}",
"dataType": 1,
"favoriteCount": 1,
"hasFavor": "N",
"hasPraise": "N",
"hasPraised": "N",
"identityAuthStatus": "N",
"imageHeight": "1488",
"imageWidth": "1984",
"isTop": 0,
"isTopicTop": 0,
"praiseCount": 89,
"publishTime": 1551061283654,
"publishTimeStr": "2019-02-25 10:21:23",
"recommendFlag": 1,
"sort": 1
}
],
"pageNo": 1,
"pageSize": 10,
"totalCount": 6,
"totalPage": 1,
"viewModel": 1
}
},
"message": "success"
}
```
... ...