Showing
1 changed file
with
112 additions
and
1 deletions
1 | -## 1、获取秒杀信息接口## | 1 | +## 1、获取秒杀时间栏接口## |
2 | + | ||
3 | +(method=app.product.querySecKillActivity) | ||
4 | +请求方式:GET | ||
5 | +#### 请求参数 | ||
6 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
7 | +|:-------| -----:|-----:|-----:|-----:|----:| | ||
8 | + | ||
9 | +注意,通用的头部没有列出,该接口没有输入参数。 | ||
10 | +请求示例 | ||
11 | +http://dev-api.yohops.com:9999/?app_version=5.0.0.0000&client_type=iphone&method=app.product.querySecKillActivity&os_version=9.3&screen_size=375x667&v=7 | ||
12 | + | ||
13 | +### 响应 | ||
14 | +code为200即为成功且只会返回200,每次都会有响应结果。 | ||
15 | +响应JSON格式如下所示: | ||
16 | +```json | ||
17 | +{ | ||
18 | + "alg": "SALT_MD5", | ||
19 | + "code": 200, | ||
20 | + "data": { | ||
21 | + "currentTime": 1473839306925, ---当前时间戳 | ||
22 | + "secKillProductVoList": [ | ||
23 | + { | ||
24 | + "activityId": 1, ---活动id | ||
25 | + "endTime": 1473739200, ---该场活动结束时间 | ||
26 | + "secKillStatus": 0, ---无用 | ||
27 | + "startTime": 1473732000, ---该场活动开始时间 | ||
28 | + "status": 0, ---无用 | ||
29 | + "storageSum": 0 ---无用 | ||
30 | + }, | ||
31 | + { | ||
32 | + "activityId": 2, | ||
33 | + "endTime": 1473746400, | ||
34 | + "secKillStatus": 0, | ||
35 | + "startTime": 1473739200, | ||
36 | + "status": 0, | ||
37 | + "storageSum": 0 | ||
38 | + }, | ||
39 | + { | ||
40 | + "activityId": 3, | ||
41 | + "endTime": 1473753600, | ||
42 | + "secKillStatus": 0, | ||
43 | + "startTime": 1473746400, | ||
44 | + "status": 0, | ||
45 | + "storageSum": 0 | ||
46 | + } | ||
47 | + ] | ||
48 | + }, | ||
49 | + "md5": "b291f2aa3015749f676f50de0d513437", | ||
50 | + "message": "query secKillActivity info" | ||
51 | +} | ||
52 | +``` | ||
53 | + | ||
54 | +## 2、获取指定秒杀活动商品列表接口## | ||
55 | + | ||
56 | +(method=app.product.querySecKillProductList) | ||
57 | +请求方式:GET | ||
58 | +#### 请求参数 | ||
59 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
60 | +|:-------| -----:|-----:|-----:|-----:|----:| | ||
61 | +|activityId|Integer|否|1|null|秒杀活动id| | ||
62 | +|app_type|Integer|是|0|0|yoho还是blk| | ||
63 | + | ||
64 | +注意,通用的头部没有列出。 | ||
65 | +请求示例 | ||
66 | +http://dev-api.yohops.com:9999/?app_version=5.0.0.0000&client_type=iphone&method=app.product.querySecKillProductList&activityId=1&os_version=9.3&screen_size=375x667&v=7 | ||
67 | + | ||
68 | +### 响应 | ||
69 | +code为200即为成功且只会返回200,每次都会有响应结果。 | ||
70 | +响应JSON格式如下所示: | ||
71 | +```json | ||
72 | +{ | ||
73 | + "alg": "SALT_MD5", | ||
74 | + "code": 200, | ||
75 | + "data": [ | ||
76 | + { | ||
77 | + "activityId": 1, ---秒杀活动id | ||
78 | + "defaultImages": "http://img11.static.yhbimg.com/goodsimg/2016/09/12/14/018aea16153cec3ad0c677a106b5d95c53.png?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/70", | ||
79 | + "endTime": 1473739200, | ||
80 | + "marketPrice": 100, ---市场价 | ||
81 | + "productName": "blkheimei男休闲/运动鞋南京艾尚仅门店可售", | ||
82 | + "productSkn": 512581470, | ||
83 | + "secKillPrice": 40, ---秒杀价 | ||
84 | + "secKillSku": [ | ||
85 | + { | ||
86 | + "productSkn": 512581470, | ||
87 | + "productSku": 1384138, | ||
88 | + "storageNum": 5 ---该sku剩余的秒杀库存 | ||
89 | + }, | ||
90 | + { | ||
91 | + "productSkn": 512581470, | ||
92 | + "productSku": 1384140, | ||
93 | + "storageNum": 5 | ||
94 | + }, | ||
95 | + { | ||
96 | + "productSkn": 512581470, | ||
97 | + "productSku": 1384140, | ||
98 | + "storageNum": 5 | ||
99 | + } | ||
100 | + ], | ||
101 | + "secKillStatus": 1, ---秒杀库存状态,0:已抢光 1:去抢购 2:还有机会 | ||
102 | + "startTime": 1473732000, | ||
103 | + "status": 0, | ||
104 | + "storageSum": 10 ---该skn剩余的秒杀库存 | ||
105 | + } | ||
106 | + ], | ||
107 | + "md5": "f09659c22f275fbd23d8999c58aba994", | ||
108 | + "message": "query secKillProductList info" | ||
109 | +} | ||
110 | +``` | ||
111 | + | ||
112 | +## 3、获取秒杀信息接口## | ||
2 | 113 | ||
3 | (method=app.product.seckill) | 114 | (method=app.product.seckill) |
4 | 请求方式:POST | 115 | 请求方式:POST |
-
Please register or login to post a comment