配餐软件
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
589 B

1 year ago
# 图片部分
# 1. 上传图片
> PUT /api/icon
### 输入:
```
Content-Type: multipart/form-data; boundary=boundary
--boundary
Content-Disposition: form-data; name="file"; filename="xxx.jpg"
< C:\Users\CCC\Documents\WeChat Files\wxid_40aqnb839lkd12\FileStorage\File\2023-09\xxx.jpg
--boundary
Content-Disposition: form-data; name="extraInfo";
```
### 输出:
```
{
"body": "1700415785530.jpg",
"code": 200,
"desc": "成功",
"success": true
}
```
# 2. 访问图片(挂在nginx目录下,不用通过api路径访问,使用前端路径访问)
1 year ago
> GET /api/icon/12341234213.jpg