[TOC=2]
## 獲取驗證碼
~~~[api]
post:/smsCaptcha/acquire
*string:phone=15181474781#手機號
<<<
success
{
"code": 0,
"data": {
"expire": 10,//有效期 分鐘
"length": 6,//驗證碼長度
"captcha": "146119"// 測試的驗證碼
}
}
<<<
error
{
"code": -1,
"msg": "手機號長度錯誤"
}
~~~
## 短信登錄
~~~[api]
post:/login
*string:phone=15181474781#手機號
*string:sms_captcha=123456#短信驗證碼
<<<
success
{
"code": 0,
"data": {
"id": 1,
"title": "1",//門店名
"address": "1",//門店詳細地址
"county_id": 1,//所在區域id
"name": "1",//店長姓名
"phone": "15181474781",//手機號
"status": true,//是否啟用 true 啟用 false 凍結
"service_id": 1,//服務項目id
"last_login_time": "2018-04-14 17:21:02",//最后一次登錄時間
"create_time": "2018-04-14 17:00:25",//創建時間
"user_type": "store",//登錄用戶類型
"session_key": "PHPSESSID",
"session_value": "ka4ni3mv32g17a40t4l9oemf25"
}
}
<<<
error
{
"code": -1,
"msg": "手機號長度錯誤"
}
~~~
## 密碼登錄
>[info] 密碼需要前端加密
~~~[api]
post:/loginPwd
*string:phone=15181474781#手機號
*string:password=123456#密碼
<<<
success
{
"code": 0,
"data": {
"id": 1,
"title": "1",//門店名
"address": "1",//門店詳細地址
"county_id": 1,//所在區域id
"name": "1",//店長姓名
"phone": "15181474781",//手機號
"status": true,//是否啟用 true 啟用 false 凍結
"service_id": 1,//服務項目id
"last_login_time": "2018-04-14 17:21:02",//最后一次登錄時間
"create_time": "2018-04-14 17:00:25",//創建時間
"user_type": "store",//登錄用戶類型
"session_key": "PHPSESSID",
"session_value": "ka4ni3mv32g17a40t4l9oemf25"
}
}
<<<
error
{
"code": -1,
"msg": "手機號長度錯誤"
}
~~~
## 修改密碼
>[info] 密碼請加密
~~~[api]
post:/changePassword
*string:password=123456#原密碼
*string:password_new=123456name#新密碼
<<<
success
{
"code": 0
}
<<<
error
{
"code": -1,
"msg": "手機號長度錯誤"
}
~~~
## 找回密碼
~~~[api]
post:/resetPassword
*string:phone=15181474781#手機號
*string:password=123456#新密碼
*string:sms_captcha=123456#驗證碼
<<<
success
{
"code": 0
}
<<<
error
{
"code": -1,
"msg": "手機號長度錯誤"
}
~~~
## 更換手機
~~~[api]
post:/changePhone
*string:phone=15181474781#手機號
*string:sms_captcha=123456#驗證碼
<<<
{
"code": 0
}
<<<
error
{
"code": -1,
"msg": "手機號長度錯誤"
}
~~~
## 注銷登錄
~~~[api]
get:/logout
<<<
success
{
"code": 0
}
~~~