IOS开发者,国庆闲来无事,随便写了一个小程序,顺带测试程序。Mysql + node github地址
简单接口说明
** Sign Up Scrpit**
echo ‘{“phone”:“18814182337”,“password”:“sdljkfsadljfksdjfs”,“device”:“iphone6s plus”,“signFrom”:0}’ | http post http://127.0.0.1:3000/users/signup
Response:
Success { “code”: 1, “data”: null, “method”: “POST”, “msg”: “账户注册成功” } ERROR - 01 { “code”: 2, “error”: “手机号已经注册”, “method”: “POST”, “msg”: “账户已经注册” } ERROR - 02 { “code”: 3, “error”: “未知错误”, “method”: “POST”, “msg”: “注册出错了” }