Showing
1 changed file
with
105 additions
and
0 deletions
线下店/线下店注册接口定义文档.md
0 → 100644
1 | +# 线下店用户注册 # | ||
2 | + | ||
3 | +## | ||
4 | +# 一、发送验证码(包括判断是否已注册,发送校验码短信) # | ||
5 | + | ||
6 | +入口:LineShopsRegisterController/sendSmsCode | ||
7 | +## | ||
8 | +# 请求参数 # | ||
9 | + | ||
10 | +| 参数名称 | 参数类型| 长度 |可否为空 |示例 |默认值 | 备注 | | ||
11 | +| ---------|:--------:| --------:|-----:|------:|------:|------:| | ||
12 | +|mobile |String | 50 |否 | | |电话号码| | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | +**请求示例** | ||
17 | +注意,通用的头部没有列出。 | ||
18 | + | ||
19 | +http://172.16.6.148:8080/portal-gateway/LineShopsRegisterController/sendSmsCode | ||
20 | + | ||
21 | + { | ||
22 | + "mobile": "1256" | ||
23 | + } | ||
24 | + | ||
25 | + | ||
26 | +**响应** | ||
27 | + | ||
28 | +code为200即为成功,否则是失败。 响应JSON格式如下所示: | ||
29 | + | ||
30 | + { | ||
31 | + "code": 200, | ||
32 | + "message": "success", | ||
33 | + "data": null | ||
34 | + } | ||
35 | + | ||
36 | + | ||
37 | + { | ||
38 | + "code": 202, | ||
39 | + "message": "该用户已注册", | ||
40 | + "data": null | ||
41 | + } | ||
42 | + | ||
43 | + | ||
44 | + { | ||
45 | + "code": 501, | ||
46 | + "message": "发送验证码失败", | ||
47 | + "data": null | ||
48 | + } | ||
49 | + | ||
50 | + | ||
51 | +## | ||
52 | +#二、注册(包括校验验证码、判断是否已注册、注册、发送注册短信) # | ||
53 | + | ||
54 | +入口:LineShopsRegisterController/lineShopsRegister | ||
55 | +## | ||
56 | +# 请求参数 # | ||
57 | + | ||
58 | +| 参数名称 | 参数类型| 长度 |可否为空 |示例 |默认值 | 备注 | | ||
59 | +| ---------|:--------:| --------:|-----:|------:|------:|------:| | ||
60 | +|mobile |String | 50 |否 | | |电话号码| | ||
61 | +|code |String | 50 |否 | | |验证码| | ||
62 | +|registerSource |int | 50 |否 | | |注册来源:1-wifi,2-ipad,3-二维码| | ||
63 | +|storeId |int | 50 |否 | | |门店id| | ||
64 | +|userId |int | 50 |否 | | |店员id,ipad端注册需要| | ||
65 | + | ||
66 | + | ||
67 | + | ||
68 | +**请求示例** | ||
69 | +注意,通用的头部没有列出。 | ||
70 | + | ||
71 | +http://172.16.6.148:8080/portal-gateway/LineShopsRegisterController/lineShopsRegister | ||
72 | + | ||
73 | + { | ||
74 | + "mobile": "1256", | ||
75 | + "code":"1235", | ||
76 | + "registerSource":2, | ||
77 | + "storeId":66, | ||
78 | + "userId":2 | ||
79 | + } | ||
80 | + | ||
81 | + | ||
82 | +**响应** | ||
83 | + | ||
84 | +code为200即为成功,否则是失败。 响应JSON格式如下所示(注册成功返回的data域为uid): | ||
85 | + | ||
86 | + { | ||
87 | + "code": 200, | ||
88 | + "message": "success", | ||
89 | + "data": 20422144 | ||
90 | + } | ||
91 | + | ||
92 | + | ||
93 | + | ||
94 | + { | ||
95 | + "code": 202, | ||
96 | + "message": "验证码不正确", | ||
97 | + "data": null | ||
98 | + } | ||
99 | + | ||
100 | + | ||
101 | + { | ||
102 | + "code": 202, | ||
103 | + "message": "该用户已注册", | ||
104 | + "data": null | ||
105 | + } |
-
Please register or login to post a comment