|
|
# 线下店用户注册 #
|
|
|
|
|
|
##
|
|
|
# 一、发送验证码(包括判断是否已注册,发送校验码短信) #
|
|
|
|
|
|
入口:LineShopsRegisterController/sendSmsCode
|
|
|
##
|
|
|
# 请求参数 #
|
|
|
|
|
|
| 参数名称 | 参数类型| 长度 |可否为空 |示例 |默认值 | 备注 |
|
|
|
| ---------|:--------:| --------:|-----:|------:|------:|------:|
|
|
|
|mobile |String | 50 |否 | | |电话号码|
|
|
|
|
|
|
|
|
|
|
|
|
**请求示例**
|
|
|
注意,通用的头部没有列出。
|
|
|
|
|
|
http://172.16.6.148:8080/portal-gateway/LineShopsRegisterController/sendSmsCode
|
|
|
|
|
|
{
|
|
|
"mobile": "1256"
|
|
|
}
|
|
|
|
|
|
|
|
|
**响应**
|
|
|
|
|
|
code为200即为成功,否则是失败。 响应JSON格式如下所示:
|
|
|
|
|
|
{
|
|
|
"code": 200,
|
|
|
"message": "success",
|
|
|
"data": null
|
|
|
}
|
|
|
|
|
|
|
|
|
{
|
|
|
"code": 202,
|
|
|
"message": "该用户已注册",
|
|
|
"data": null
|
|
|
}
|
|
|
|
|
|
|
|
|
{
|
|
|
"code": 501,
|
|
|
"message": "发送验证码失败",
|
|
|
"data": null
|
|
|
}
|
|
|
|
|
|
|
|
|
##
|
|
|
#二、注册(包括校验验证码、判断是否已注册、注册、发送注册短信) #
|
|
|
|
|
|
入口:LineShopsRegisterController/lineShopsRegister
|
|
|
##
|
|
|
# 请求参数 #
|
|
|
|
|
|
| 参数名称 | 参数类型| 长度 |可否为空 |示例 |默认值 | 备注 |
|
|
|
| ---------|:--------:| --------:|-----:|------:|------:|------:|
|
|
|
|mobile |String | 50 |否 | | |电话号码|
|
|
|
|code |String | 50 |否 | | |验证码|
|
|
|
|registerSource |int | 50 |否 | | |注册来源:1-wifi,2-ipad,3-二维码|
|
|
|
|storeId |int | 50 |否 | | |门店id|
|
|
|
|userId |int | 50 |否 | | |店员id,ipad端注册需要|
|
|
|
|
|
|
|
|
|
|
|
|
**请求示例**
|
|
|
注意,通用的头部没有列出。
|
|
|
|
|
|
http://172.16.6.148:8080/portal-gateway/LineShopsRegisterController/lineShopsRegister
|
|
|
|
|
|
{
|
|
|
"mobile": "1256",
|
|
|
"code":"1235",
|
|
|
"registerSource":2,
|
|
|
"storeId":66,
|
|
|
"userId":2
|
|
|
}
|
|
|
|
|
|
|
|
|
**响应**
|
|
|
|
|
|
code为200即为成功,否则是失败。 响应JSON格式如下所示(注册成功返回的data域为uid):
|
|
|
|
|
|
{
|
|
|
"code": 200,
|
|
|
"message": "success",
|
|
|
"data": 20422144
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
"code": 202,
|
|
|
"message": "验证码不正确",
|
|
|
"data": null
|
|
|
}
|
|
|
|
|
|
|
|
|
{
|
|
|
"code": 202,
|
|
|
"message": "该用户已注册",
|
|
|
"data": null
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|