Merge pull request #1243 from RickCole21/master

doc
This commit is contained in:
RickCole 2020-12-24 16:33:09 +08:00 committed by GitHub
commit 093979256f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,20 @@ order: 27
} }
``` ```
### 接口返回格式
```json
{
"status": 0,
"msg": "",
"data": {
"value": "xxxx"
}
}
```
- value必须返回该字段用作回显一般是文件资源地址
## 限制文件类型 ## 限制文件类型
可以配置`accept`来限制可选择的文件类型,格式是文件后缀名`.xxx` 可以配置`accept`来限制可选择的文件类型,格式是文件后缀名`.xxx`
@ -99,9 +113,13 @@ order: 27
```json ```json
{ {
"value": "xxxxxxx", "status": 0,
"filename": "xxxx.csv", "msg": "",
"url": "http://xxxx.xxx.xxx" "data": {
"value": "xxxxxxx",
"filename": "xxxx.jpg",
"url": "http://xxxx.xxx.xxx"
}
} }
``` ```