文件上传
POST
/api/system/file/
请求参数
Body 参数multipart/form-data
file
file
必需
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/system/file/' \
--form 'file=@""'
返回响应
🟢200成功
application/json
Body
code
integer
必需
data
object
必需
modifier_name
null
必需
description
null
必需
modifier
null
必需
dept_belong_id
null
必需
name
null
必需
url
string
显示用
file_url
string
内部接口保存用
creator
null
必需
msg
string
必需
示例
{
"code": 0,
"data": {
"modifier_name": null,
"description": null,
"modifier": null,
"dept_belong_id": null,
"name": null,
"url": "string",
"file_url": "string",
"creator": null
},
"msg": "string"
}
修改于 2024-12-18 11:42:06