多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
## 用户注册 > 代号:1000_u2 >可能返回的错误码:1006,1007 ,1008 ,1009 +++ Xmkz_v3/User/register *phone=手机号 # *code=验证码 # *password=密码 # *confirmPassword=确认密码 # *uuid=手机UUID # <<< success { "data": { "token": "90a7575397a7b2cd74901e0c5c3e72d0ce2631" }, "info": "注册成功", "code": 1000, "state": 1 } <<< error { "data": "", "info": "该账号已存在", "code": 1007, "state": 2 } +++ ## 用户登录 > 代号:1000_u2 >可能返回的错误码:1006,1010 +++ Xmkz_v3/User/login *phone=手机号 # *password=密码 # <<< success { "data": { "token": "90a7575397a7b2cd74901e0c5c3e72d0ce2631" }, "info": "登录成功", "code": 1000, "state": 1 } <<< error { "data": "", "info": "手机号码不可为空,或输入手机号有误。", "code": 1006, "state": 2 } +++ ## 修改密码 > 代号:1000_u10 >可能返回的错误码:1006,1011 ,1012 +++ post:Xmkz_v3/User/retrieve_password?token=用户token *original_password=原密码 # *new_password=新密码 # *confirm_new_password=确认密码 # <<< success { "data": "", "info": "密码修改成功", "code": 1000, "state": 1 } <<< error { "data": "", "info": "您输入的密码有误", "code": 1011, "state": 2 } +++ ## 找回密码 > 代号:1000_u4 >可能返回的错误码:1006,1013,1014 +++ post:Xmkz_v3/User/retrieve_password *account=账号 # *phone_code=验证码 # *new_password=新密码 # <<< success { "data": "", "info": "密码设置成功", "code": 1000, "state": 1 } <<< error { "data": "", "info": "验证码有误", //错误原因 "code": 1013, "state": 2 } +++ ## 获取用户详细信息 > 代号:1000_u7 >可能返回的错误码:1015 +++ get:Xmkz_v3/User/get_user_details?token=用户token <<< success { "data": { "_id": "261", "account": "15507898841", "password": "724a5ff5d3f75b4ec9ef6fa052580e1d73647f", "user_grade": "0", "integral": "0", "status": "2", "uuid": "12123412", "token": "90a7575397a7b2cd74901e0c5c3e72d0ce2631", "cid": null, "create_time": "1484712533", "token_time": "1484712533", "port": "5", "pid": "0" }, "info": "", "code": 1000, "state": 1 } <<< error { "data": "", "info": "用户不存在", "code": 1015, "state": 2 } +++ ## 获取用户详细信息 > 代号:1000_u9 >可能返回的错误码: >注意:退出后,将会刷新token。所以所有的APP启动的时候要检查下用户的token是否存在 +++ get:Xmkz_v3/User/get_user_details?token=用户token <<< success { "data": "", "info": "退出成功", "code": 1000, "state": 1 } <<< +++