上传文件
POST
/api/file/upload请求参数
Header 参数
Authentication
string
必需
示例值:
{{token}}
Body 参数multipart/form-data
file
file
必需
示例值:
[]
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
result
string
文件相对路径
success
boolean
必需
timestamp
integer
必需
示例
{
"code": 200,
"message": "操作成功",
"result": "xxxx/yyyy/file1.xlsx",
"success": true,
"timestamp": 1679389339866
}
修改于 1 年前