Showing
1 changed file
with
76 additions
and
0 deletions
种草/首页导购频道.md
0 → 100644
1 | +## 1、导购列表接口## | ||
2 | + | ||
3 | +社区首页:社区频道和关注频道继续调用原本的接口, 导购频道用下面的新接口 | ||
4 | + | ||
5 | +导购频道下二级渠道列表的接口(app.grass.channelArticleList) | ||
6 | +#### 请求参数 | ||
7 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
8 | +|:-------| -----:|-----:|-----:|-----:|----:| | ||
9 | +| uid | Integer | 是 | 380463 | 0 | 用户id | | ||
10 | +| page | Integer | 否 | 1 | 1 | 页码 | | ||
11 | +| limit | Integer | 否 | 1 | 10 | 每页显示条数 | | ||
12 | +| lastedTime | String | 是 | "1548905701041" | null | 第一次请求或者刷新列表时不传, 接口会返回此字段,后续分页请求带上该字段值 | | ||
13 | +| channelId | Integer | 否 | 5 | 无 | 二级渠道id(导购下默认推荐渠道channelId =5) | | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | +注意,通用的头部没有列出。 | ||
18 | +请求示例 | ||
19 | +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 | ||
20 | + | ||
21 | +### 响应 | ||
22 | +code为200即为成功。 | ||
23 | +响应JSON格式如下所示: | ||
24 | +```json | ||
25 | +{ | ||
26 | + "code": 200, | ||
27 | + "data": { | ||
28 | + "lastedTime": "1548673065000", | ||
29 | + "list": [ | ||
30 | + { | ||
31 | + "articleId": 1410420, | ||
32 | + "articleType": 1, | ||
33 | + "authStatus": 1, | ||
34 | + "authorHeadIco": "http://head.static.yhbimg.com/yhb-head/2019/05/30/10/011523437ca01f32190527de2a87adb957.jpg?imageView2/{mode}/w/{width}/h/{height}", | ||
35 | + "authorName": "YOHO-3c6aeebdd", | ||
36 | + "authorType": 1, | ||
37 | + "authorUid": 500031858, | ||
38 | + "content": "UFO商品发现好物", | ||
39 | + "copyright": "原创", | ||
40 | + "coverImage": "https://imgsocial.yohobuy.com/grassImg/2019/11/06/16/014f5cd98b165ac0ff25d16d641de09495.jpg?imageView2/{mode}/w/{width}/h/{height}", | ||
41 | + "dataType": 1, | ||
42 | + "favoriteCount": 1, | ||
43 | + "hasFavor": "N", | ||
44 | + "hasPraised": "N", | ||
45 | + "identityAuthStatus": "N", | ||
46 | + "imageHeight": "1080", | ||
47 | + "imageWidth": "1080", | ||
48 | + "isTop": 1, | ||
49 | + "isTopicTop": 0, | ||
50 | + "praiseCount": 3, | ||
51 | + "publishTime": 1573030422709, | ||
52 | + "publishTimeStr": "2019-11-06 16:53:42", | ||
53 | + "recommendFlag": 1, | ||
54 | + "sort": 1, //文章类型: 1 笔记 2长文章 3 跳转链接 4 视频 | ||
55 | + "coverImageType":1 //导购列表新增返回字段,1 小图模式(左图右字) 2 大图模式(上图下字) | ||
56 | + }, | ||
57 | + { | ||
58 | + "dataType": 2, //数据类型 1:文章 2资源位 | ||
59 | + "identityAuthStatus": "N", | ||
60 | + "imageHeight": "500", | ||
61 | + "imageWidth": "500", | ||
62 | + "resourceSrc": "http://img10.static.yhbimg.com/yhb-img01/2019/05/28/16/01148342fa4444aec21c64bd05d4b1e5d1.png?imageView2/{mode}/w/{width}/h/{height}", | ||
63 | + "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\"}}" | ||
64 | + } | ||
65 | + ], | ||
66 | + "pageNo": 1, | ||
67 | + "pageSize": 3, | ||
68 | + "totalCount": 5, | ||
69 | + "totalPage": 2 | ||
70 | + | ||
71 | + }, | ||
72 | + "message": "success" | ||
73 | +} | ||
74 | +``` | ||
75 | + | ||
76 | + |
-
Please register or login to post a comment