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