Update newArriActivity.md
Showing
1 changed file
with
93 additions
and
0 deletions
1 | +# 新品节接口文档 | ||
2 | + | ||
3 | +### 1. 活动详情 | ||
4 | +获取活动信息以及参与人数和产品购买数量 | ||
5 | +`method=app.newArrActivity.info` | ||
6 | + | ||
7 | +#### 请求参数 | ||
8 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
9 | +| :---------- | ------: | ---: | -------: | ---: | ----------------------------: | | ||
10 | +| activityId | Integer | 否 | 100 | 0 | 活动id,固定100| | ||
11 | + | ||
12 | +#### 响应 | ||
13 | +```json | ||
14 | +{ | ||
15 | + "alg": "SALT_MD5", | ||
16 | + "code": 200, | ||
17 | + "data": { | ||
18 | + "activityId": 100, //活动id | ||
19 | + "activityName": "新品节活动", | ||
20 | + "beginTime": 1566907796, //活动开始时间 | ||
21 | + "buyNum": 300, //活动商品已购买数量 | ||
22 | + "describe": "新品节活动", | ||
23 | + "endTime": 1569772800, //活动结束时间 | ||
24 | + "starNum": 7, //当前点赞数 | ||
25 | + "unlockNum": 500 //点赞数上限 | ||
26 | + }, | ||
27 | + "md5": "ffc0aace3242ad63ea6f43251172c0f4", | ||
28 | + "message": "操作成功" | ||
29 | +} | ||
30 | +``` | ||
31 | +<br/> | ||
32 | +### 2. 参加活动用户列表 | ||
33 | +获取参加点赞的用户列表,目前取前10条 | ||
34 | +`method=app.newArrActivity.userList` | ||
35 | +#### 请求参数 | ||
36 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
37 | +| :---------- | ------: | ---: | -------: | ---: | ----------------------------: | | ||
38 | +| activityId | Integer | 否 | 100 | 0 | 活动id,固定100| | ||
39 | + | ||
40 | +#### 响应 | ||
41 | +```json | ||
42 | +{ | ||
43 | + "alg": "SALT_MD5", | ||
44 | + "code": 200, | ||
45 | + "data": [ | ||
46 | + { | ||
47 | + "nickName": "时间旅行者",//昵称 | ||
48 | + "uid": 2 //用户uid | ||
49 | + }, | ||
50 | + { | ||
51 | + "nickName": "TiM", //昵称 | ||
52 | + "uid": 8050370 //用户uid | ||
53 | + }, | ||
54 | + { | ||
55 | + "nickName": ".", | ||
56 | + "uid": 50038810 | ||
57 | + }, | ||
58 | + { | ||
59 | + "nickName": "123_XPkALw", | ||
60 | + "uid": 500030381 | ||
61 | + }, | ||
62 | + { | ||
63 | + "uid": 1234567 | ||
64 | + }, | ||
65 | + { | ||
66 | + "uid": 10178803 | ||
67 | + } | ||
68 | + ], | ||
69 | + "md5": "f0e57052b36f9afbcaa1b0444f4409fc", | ||
70 | + "message": "操作成功" | ||
71 | +} | ||
72 | +``` | ||
73 | + | ||
74 | +### 2. 点赞 | ||
75 | +用户点赞,一个用户只能点赞一次,点赞数可能会超过500,接口暂不做并发控制。 | ||
76 | +`method=app.newArrActivity.star` | ||
77 | + | ||
78 | +#### 请求参数 | ||
79 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
80 | +| :---------- | ------: | ---: | -------: | ---: | ----------------------------: | | ||
81 | +| activityId | Integer | 否 | 100 | 0 | 活动id,固定100| | ||
82 | +| uid | Integer | 否 | 10178803 | 0 | 用户uid| | ||
83 | + | ||
84 | +#### 响应 | ||
85 | +```json | ||
86 | +{ | ||
87 | + "alg": "SALT_MD5", | ||
88 | + "code": 200, //成功 | ||
89 | + "data": 8, //当前参加人数 | ||
90 | + "md5": "", | ||
91 | + "message": "成功" | ||
92 | +} | ||
93 | +``` |
-
Please register or login to post a comment