-
URL:/user/code
-
method:GET
-
args:
Key Require Value phone True 11位中国手机号码 -
response:
{ "status": "success", "data": "msg" }
{ "status": "error", "err_msg": "msg" }
-
URL:/user/account
-
method:POST
-
args:
{ "phone": "18807424758", "code": "6143", "password": "123456", "name": "Mike" }
-
response:
{ "status": "success", "data": "msg" }
{ "status": "error", "err_msg": "msg" }
-
URL:/user/authorization
-
method:POST
-
args:
{ "name": "guyunkai", "password": "123456" }
-
response:
{ "status": "success", "data": "token" }
{ "status": "error", "err_msg": "msg" }
-
URL:/notice
-
method:GET
-
header:token
-
response:
{ "status": "success", "data": { "title": "样例", "content": "内容" } }
-
URL:/img/cycle
-
method:GET
-
header:token
-
response:(
http://pull.wghtstudio.cn/img/
为图片请求前缀){ "status": "success", "data": [ "1.jpg", "2.jpg", "3.jpg", "4.jpg", "5.jpg", "6.jpg" ] }
-
URL:/img/imgs
-
method:GET
-
args:
Key value num int -
header:token
-
response:
{ "status": "success", "data": [ { "id": 1, "url": "6.jpg" }, { "id": 1, "url": "6.jpg" } ] }
-
URL:/img/unknown
-
method:GET
-
header:token
-
response:
{ "status": "success", "data": [ { "id": 1, "url": "6.jpg" }, { "id": 1, "url": "6.jpg" } ] }
-
URL:/img/tags
-
method:GET
-
header:token
-
response:
{ "status": "success", "data": [ { "top": "风格", "second": [ { "id": 3, "tag": "典雅的" } ] } ] }
-
URL: /tag
-
method: POST
-
args:
{ "img_id": 7, "tag": [1, 2] }
-
response:
{ "status": "success", "data": "图片提交完成" }
{ "status": "error", "err_msg": "提交失败" }
-
URL:/record
-
method:GET
-
header:token
-
response:
{ "status": "success", "data": { "day": 0, "week": 5 } }