Browse Source

文件上传

master
zhizhi wu 4 years ago
parent
commit
8e8afccbe7
  1. 15
      pt_ccsens/财务条.http
  2. 8
      文件管理/file/file.http

15
pt_ccsens/财务条.http

@ -9,7 +9,7 @@
### 登录
# song 1218763410024566784
# @name login
POST {{test_tall}}/users/signin
POST {{localhost_tall}}/users/signin
{{type}}
{
@ -124,3 +124,16 @@ Authorization: Bearer {{login.response.body.$.data.token}}
"pageSize":10
}
}
### 发票识别
POST {{localhost}}/ocr/bill
Authorization: Bearer {{login.response.body.$.data.token}}
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
title
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="part"; filename="C:\Users\23778\Desktop\invoice.jpg"
< C:\Users\23778\Desktop\invoice.jpg
------WebKitFormBoundary7MA4YWxkTrZu0gW--

8
文件管理/file/file.http

@ -56,9 +56,11 @@ Authorization: Bearer {{login.response.body.$.data.token}}
title
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="files"; filename="111.png"
Content-Type: image/png
< C:\Users\dou\Desktop\TALL-数据中心[数据中心]-202214112256.png
Content-Disposition: form-data; name="files"; filename="invoice.jpg"
Content-Type: image/jpeg
< C:\Users\23778\Desktop\invoice.jpg
------WebKitFormBoundary7MA4YWxkTrZu0gW--

Loading…
Cancel
Save