interface fileUpload - Campus-take-out/take-out GitHub Wiki

图片上传接口

商家图片上传接口

接口地址:http://address/Campus take-out/fileUploadMerchant

Method:post

出参字段

字段 类型 含义 备注
code string 状态码 200成功 400失败
msg string 状态信息
time long 格林威治时间1970年01月01日00时00分00秒到现在的毫秒数
object jsonObject 返回的数据
i_id int 主键id
i_url string 图片url
i_path string 图片存储根路径
i_filename string 图片名称
i_priority string 图片等级
i_uploadtime string 图片上传时间

出参示例

{
"code":"200",
"msg":"上传图片成功",
"time":1535767092173,
"object":
{
"i_id":0,
"i_path":"/root/apache-tomcat-8.0.52/webapps/uploads/merchant/8cb39fd9-2e2d-4162-8da1-0ae670af5b62.png",
"i_url":"http://address/uploads/merchant/8cb39fd9-2e2d-4162-8da1-0ae670af5b62.png",
"i_filename":"8cb39fd9-2e2d-4162-8da1-0ae670af5b62.png",
"i_uploadtime":"2018-09-01 09:58:12",
"i_priority":0
}
}

评价图片上传接口

接口地址:http://address/Campus take-out/fileUploadEvaluate

Method:post

出参字段

字段 类型 含义 备注
code string 状态码 200成功 400失败
msg string 状态信息
time long 格林威治时间1970年01月01日00时00分00秒到现在的毫秒数
object jsonObject 返回的数据
i_id int 主键id
i_url string 图片url
i_path string 图片存储根路径
i_filename string 图片名称
i_priority string 图片等级
i_uploadtime string 图片上传时间

出参示例

{
"code":"200",
"msg":"上传图片成功",
"time":1535767092173,
"object":
{
"i_id":0,
"i_path":"/root/apache-tomcat-8.0.52/webapps/uploads/evaluate/8cb39fd9-2e2d-4162-8da1-0ae670af5b62.png",
"i_url":"http://address/uploads/evaluate/8cb39fd9-2e2d-4162-8da1-0ae670af5b62.png",
"i_filename":"8cb39fd9-2e2d-4162-8da1-0ae670af5b62.png",
"i_uploadtime":"2018-09-01 09:58:12",
"i_priority":0
}
}

食物图片上传接口

接口地址:http://address/Campus take-out/fileUploadFood

Method:post

出参字段

字段 类型 含义 备注
code string 状态码 200成功 400失败
msg string 状态信息
time long 格林威治时间1970年01月01日00时00分00秒到现在的毫秒数
object jsonObject 返回的数据
i_id int 主键id
i_url string 图片url
i_path string 图片存储根路径
i_filename string 图片名称
i_priority string 图片等级
i_uploadtime string 图片上传时间

出参示例

{
"code":"200",
"msg":"上传图片成功",
"time":1535767092173,
"object":
{
"i_id":0,
"i_path":"/root/apache-tomcat-8.0.52/webapps/uploads/food/8cb39fd9-2e2d-4162-8da1-0ae670af5b62.png",
"i_url":"http://address/uploads/food/8cb39fd9-2e2d-4162-8da1-0ae670af5b62.png",
"i_filename":"8cb39fd9-2e2d-4162-8da1-0ae670af5b62.png",
"i_uploadtime":"2018-09-01 09:58:12",
"i_priority":0
}
}
⚠️ **GitHub.com Fallback** ⚠️