From 7b7a3eae1d38e8422032e9de3880632c686201b2 Mon Sep 17 00:00:00 2001 From: zy_Java <654600784@qq.com> Date: Tue, 6 Apr 2021 10:29:15 +0800 Subject: [PATCH] 20210406v1.0 --- tall/project/project.http | 19 ++++++++++++------- 文件管理/file/file.http | 34 +++++++++++++++++++++++----------- 2 files changed, 35 insertions(+), 18 deletions(-) diff --git a/tall/project/project.http b/tall/project/project.http index 6f49880..d2e7f1a 100644 --- a/tall/project/project.http +++ b/tall/project/project.http @@ -1,7 +1,8 @@ @tall = https://www.tall.wiki/gateway/tall/v1.0 @test = https://test.tall.wiki/gateway/tall/v1.0 -@localhost = http://localhost:7030 +@localhost = http://localhost:7030/v1.0 @type = content-type: application/json;charset=utf-8 +@token = Authorization: Bearer {{login.response.body.$.data.token}} ### 登录 # @name login @@ -29,15 +30,19 @@ GET {{localhost}}/debug/htt -### 导入WBS -POST {{localhost}}/projects/wbs -Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW +### 导入WBS +POST {{localhost}}/projects/wbs +Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW title ------WebKitFormBoundary7MA4YWxkTrZu0gW -Content-Disposition: form-data; name="file"; filename="绿谷研究院项目管理WBS.xlsx" -Content-Type: xlsx +Content-Disposition: form-data; name="file"; filename="绿谷研究院项目管理WBS.xlsx" +Content-Type: xlsx -< C:\Users\dou\Desktop\维基后台WBS-1.0-20210324.xlsx +< C:\Users\dou\Desktop\维基后台WBS-1.0-20210324.xlsx ------WebKitFormBoundary7MA4YWxkTrZu0gW-- + ### +GET {{test}}/projects/1/roles +{{type}} +{{token}} diff --git a/文件管理/file/file.http b/文件管理/file/file.http index aa7c22e..cd17fb9 100644 --- a/文件管理/file/file.http +++ b/文件管理/file/file.http @@ -2,6 +2,7 @@ @testTall = https://test.tall.wiki/gateway/tall/v1.0 @localhostTall = http://localhost:7030/v1.0 @testFile = https://test.tall.wiki/filedeal +@testFile31 = http://192.168.31.13/filedeal @type = content-type: application/json;charset=utf-8 @token = Authorization: Bearer {{login.response.body.$.data.token}} @@ -20,21 +21,32 @@ POST {{localhostTall}}/users/signin } } -### debug -GET {{localhostTall}}/debug/htt -# GET {{testFile}}/debug/htt -{{type}} - -[ - 1321760076465311744 -] - ### 根据id查询文件信息 -POST {{testFile}}/file/query +POST {{localhost}}/file/query {{type}} [ 1321760076465311744 ] - \ No newline at end of file + + +### 批量添加文件 +POST {{localhost}}/file/upload/multiple +Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW + +------WebKitFormBoundary7MA4YWxkTrZu0gW +Content-Disposition: form-data; name="files"; filename="111.png" +Content-Type: png +< C:\Users\dou\Desktop\29c3d35916816bab89a7902ee144b5d - 副本.png +------WebKitFormBoundary7MA4YWxkTrZu0gW-- +------WebKitFormBoundary7MA4YWxkTrZu0gW +Content-Disposition: form-data; name="files"; filename="112.png" +Content-Type: png +< C:\Users\dou\Desktop\29c3d35916816bab89a7902ee144b5d - 副本.png +------WebKitFormBoundary7MA4YWxkTrZu0gW-- +------WebKitFormBoundary7MA4YWxkTrZu0gW +Content-Disposition: form-data; name="files"; filename="114.png" +Content-Type: png +< C:\Users\dou\Desktop\29c3d35916816bab89a7902ee144b5d - 副本.png +------WebKitFormBoundary7MA4YWxkTrZu0gW-- \ No newline at end of file