From a97196188f738412c24986f527c2c04b423b7297 Mon Sep 17 00:00:00 2001 From: ma <1062634917@qq.com> Date: Fri, 2 Apr 2021 09:31:05 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=B5=8B=E8=AF=95tall?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tall/input/input.http | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 tall/input/input.http diff --git a/tall/input/input.http b/tall/input/input.http new file mode 100644 index 0000000..e69de29 From 0dbb131ec6de46e639cbb9175c816c95e36b64c8 Mon Sep 17 00:00:00 2001 From: ma <1062634917@qq.com> Date: Fri, 2 Apr 2021 16:10:40 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=8F=92=E4=BB=B6=E5=92=8C=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E6=96=87=E6=A1=A3=E7=9A=84=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tall/input/input.http | 115 ++++++++++++++++++++++++++++++++++++++++ tall/plugin/plugin.http | 93 ++++++++++++++++++++++++++++++++ 文件管理/file/file.http | 2 +- 3 files changed, 209 insertions(+), 1 deletion(-) create mode 100644 tall/plugin/plugin.http diff --git a/tall/input/input.http b/tall/input/input.http index e69de29..7bc97d8 100644 --- a/tall/input/input.http +++ b/tall/input/input.http @@ -0,0 +1,115 @@ +@tall = https://www.tall.wiki/gateway/tall/v1.0 +@test = https://test.tall.wiki/gateway/tall/v1.0 +@localhost = http://localhost:7030 +@type = content-type: application/json;charset=utf-8 + +### 登录 +# @name login +POST {{test}}/users/signin +# POST http://localhost:7030/v1.0/users/signin +{{type}} + +{ + "client": 1, + "type": 3, + "data": { + "identifier": "zy11", + "credential": "123456" + } +} + +#删除输入文档的文件 +###F +# POST http://localhost:7030/v1.0/inputDoc/delDocOfFile +POST {{test}}/inputDoc/delDocOfFile +{{type}} +Authorization: Bearer {{login.response.body.$.data.token}} + +{ + "param": { + "recordId":"1377820258844413952" + } +} + +#给输入文档上传文件 +###F +# POST http://localhost:7030/v1.0/inputDoc/uploadForDoc +POST {{test}}/inputDoc/uploadForDoc +{{type}} +Authorization: Bearer {{login.response.body.$.data.token}} + +{ + "param": { + "docId":"1377815853025857536", + "remark":"标准测试备注" + } +} + + +###F +#删除输入文档 +# POST http://localhost:7030/v1.0/inputDoc/delDoc +POST {{test}}/inputDoc/delDoc +{{type}} +Authorization: Bearer {{login.response.body.$.data.token}} + +{ + "param": { + "docId":1377815853025857536 + } +} + +###F +#修改输入文档 +# POST http://localhost:7030/v1.0/inputDoc/updateDoc +POST {{test}}/inputDoc/updateDoc +{{type}} +Authorization: Bearer {{login.response.body.$.data.token}} + +{ + "param": { + "docId":1377815853025857536, + "fileName":"测试修改文档1" + } +} + +###F +#添加输入文档 +# POST http://localhost:7030/v1.0/inputDoc/addDoc +POST {{test}}/inputDoc/addDoc +{{type}} +Authorization: Bearer {{login.response.body.$.data.token}} + +{ + "param": { + "taskId":"1", + "fileName":["标准测试文档1","标准测试文档2"] + } +} + +#根据id查询文档详情 +###F +# POST http://localhost:7030/v1.0/inputDoc/docByTask +POST {{test}}/inputDoc/docByTask +{{type}} +Authorization: Bearer {{login.response.body.$.data.token}} + +{ + "param": { + "taskId":1 + } +} + + +#查看输入文档历史记录(需修改) +###F +# POST http://localhost:7030/v1.0/inputDoc/viewDocHistory +POST {{test}}/inputDoc/viewDocHistory +{{type}} +Authorization: Bearer {{login.response.body.$.data.token}} + +{ + "param": { + "docId":"1" + } +} \ No newline at end of file diff --git a/tall/plugin/plugin.http b/tall/plugin/plugin.http new file mode 100644 index 0000000..60aab21 --- /dev/null +++ b/tall/plugin/plugin.http @@ -0,0 +1,93 @@ +@tall = https://www.tall.wiki/gateway/tall/v1.0 +@test = https://test.tall.wiki/gateway/tall/v1.0 +@localhost = http://localhost:7030 +@type = content-type: application/json;charset=utf-8 + +### 登录 +# @name login +POST {{test}}/users/signin +# POST http://localhost:7030/v1.0/users/signin +{{type}} + +{ + "client": 1, + "type": 3, + "data": { + "identifier": "zy11", + "credential": "123456" + } +} + +#根据任务id查询插件列表(该任务已添加的) +###F +# POST http://localhost:7030/v1.0/plugins/findPluginOfAdded +POST {{test}}/plugins/findPluginOfAdded +{{type}} +Authorization: Bearer {{login.response.body.$.data.token}} + +{ + "param": { + "taskId":"1365119892432490496", + "roleId":"1365119891782373376" + } +} + +#根据任务id查询插件列表(该任务未添加的的) +###F +# POST http://localhost:7030/v1.0/plugins/findPluginOfNoAdded +POST {{test}}/plugins/findPluginOfNoAdded +{{type}} +Authorization: Bearer {{login.response.body.$.data.token}} + +{ + "param": { + "taskId":"1", + "roleId":"1" + } +} + + +#给插件总表添加插件 +###F +# POST http://localhost:7030/v1.0/plugins/save +POST {{test}}/plugins/save +{{type}} +Authorization: Bearer {{login.response.body.$.data.token}} + +{ + "param": { + "name":"test-one-fuwuqi", + "description":"测试插件服务器" + + } +} + +#给任务添加插件 +###F +# POST http://localhost:7030/v1.0/plugins/addPluginForTask +POST {{test}}/plugins/addPluginForTask +{{type}} +Authorization: Bearer {{login.response.body.$.data.token}} + +{ + "param": { + "pluginId":"1", + "taskId":"1365120545775030272", + "roleId":"1365119891782373376" + } +} + +#给任务删除插件 +###F +# POST http://localhost:7030/v1.0/plugins/deletePluginForTask +POST {{test}}/plugins/deletePluginForTask +{{type}} +Authorization: Bearer {{login.response.body.$.data.token}} + +{ + "param": { + "taskId":"1365120545775030272", + "roleId":"1365119891782373376", + "pluginId":"1" + } +} \ No newline at end of file diff --git a/文件管理/file/file.http b/文件管理/file/file.http index aa7c22e..cbe3482 100644 --- a/文件管理/file/file.http +++ b/文件管理/file/file.http @@ -8,7 +8,7 @@ ### 登录 # @name login -POST {{localhostTall}}/users/signin +POST {{testFile}}/users/signin {{type}} { From 848bd30fdd532037bbe668a65a201d7116cbfd6e Mon Sep 17 00:00:00 2001 From: wang0018 <1007152140@qq.com> Date: Fri, 2 Apr 2021 16:39:12 +0800 Subject: [PATCH 3/3] tijiao --- tall/project/project.http | 51 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 48 insertions(+), 3 deletions(-) diff --git a/tall/project/project.http b/tall/project/project.http index 6f49880..be06e9a 100644 --- a/tall/project/project.http +++ b/tall/project/project.http @@ -1,11 +1,13 @@ @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= eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2MTczMjg2MDksInN1YiI6IjEyMTgwMjUyNDk0OTMzNTY1NDQiLCJhdXRoSWQiOiIxMTgzNjM2MjkxNjQ5MTQ2ODgwIiwiZXhwIjoxNjE3NDE1MDA5fQ.22OvohHsYtuR527otz6A1p8Ebft9O3UM5bSFysh1Hwc + ### 登录 # @name login -POST {{test}}/users/signin +POST {{localhost}}/users/signin # POST http://localhost:7030/v1.0/users/signin {{type}} @@ -13,7 +15,7 @@ POST {{test}}/users/signin "client": 1, "type": 3, "data": { - "identifier": "zy11", + "identifier": "chen", "credential": "123456" } } @@ -27,7 +29,50 @@ GET {{localhost}}/debug/htt 1321760076465311744 ] +### 测试-根据项目id获取二级角色列表 +GET {{localhost}}/projects/1377463632086044672/roles +{{type}} +Authorization: Bearer {{login.response.body.$.data.token}} + +### 测试-查询项目下得所有角色。包含未添加得和已添加得 +POST {{localhost}}/roles/queryRoleShows +{{type}} +Authorization: Bearer {{login.response.body.$.data.token}} + +{ + "param":{ + "projectId":1377463632086044672 + } +} + +### 测试-修改角色是否展示 +POST {{localhost}}/roles/queryRoleIsShows +{{type}} +Authorization: Bearer {{login.response.body.$.data.token}} + +{ + "param":{ + "projectId":1377463632086044672, + "roleIds":[ + 1377463635445682176 + ], + "isShow":true + } +} +### 测试-对角色排序 +POST {{localhost}}/roles/upRoleShowsOrder +{{type}} +Authorization: Bearer {{login.response.body.$.data.token}} + +{ + "param":{ + "projectId":1377463632086044672, + "roleIds":[ + 1377463635974164480,1377463636209045504,1377463635760254976,1377463635445682176 + ] + } +} ### 导入WBS POST {{localhost}}/projects/wbs