上传文件
POST
/api/upload
接口描述
上传文件
请求参数
参数名
类型
描述
必填
file
file
文件
必填
响应参数
参数名
类型
描述
必填
code
int
错误码,0正确,小于0表示有错误
必填
msg
string
错误信息
可选
fileName
string
服务器上的文件名字,然后通过这个名字拼接地址就可以拿到图片了。例如:https://xxxx.com/file/{{fileName}}
可选