## :-: **發表帖子**
### 上傳圖片
~~~[api]
post:/api/data/upload
file:file= #圖片
<<<
success
{
"code": 1,
"msg": "upload successful", //上傳成功
"result": {
"type": "2-0", //類型
"name": "二維碼.png", //圖片名字
"src": "http://miaoxiang.xtow.net/static/cover/82/6692a865a8e102f20da3cb3baab17a.png",
"size": 89573, //圖片大小(字節)
"create_time": "2018-12-26 14:09:57", // 上傳時間
"id": "4" //圖片id
}
}
<<<
error
{
"code": 0,
"msg": "Please upload pictures" // 請上傳圖片
}
~~~