Browse Source

Merge branch 'master' of dd.tall.wiki:ccsens_wiki/vs_test

master
hyy-alt 5 years ago
parent
commit
4bd821c2ac
  1. 121
      HT/认知.http
  2. 4
      README.md
  3. 115
      tall/input/input.http
  4. 93
      tall/plugin/plugin.http
  5. 76
      tall/project/project.http
  6. 31
      中医药/中医药测试.http
  7. 40
      文件管理/file/file.http

121
HT/认知.http

@ -0,0 +1,121 @@
@sxzxyzzlm_ht = https://sxzxyzzlm.tall.wiki/gateway/ht
@sxzxyzzlm_question = https://sxzxyzzlm.tall.wiki/gateway/question
@sxzxyzzlm_tall = https://sxzxyzzlm.tall.wiki/gateway/tall/v1.0
@localhost_question = http://127.0.0.1:7160
@localhost_ht = http://127.0.0.1:7040
@test_ht = http://192.168.31.13/gateway/ht
@test_tall = http://192.168.0.99/gateway/tall/v1.0
@sd_ht = https://sd.tall.wiki/gateway/ht
@type = content-type: application/json;charset=utf-8
@formdata = Content-Disposition: form-data; name="image"; filename="1.png"
@excel = Content-Type: image/png
### login
# @name login
POST {{sxzxyzzlm_tall}}/users/signin
{{type}}
{
"client": 1,
"data": {
"credential": "123456",
"identifier": "doctorli"
},
"scene": 0,
"type": 3
}
### 导入全部
POST {{test_ht}}/importBase
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
title
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="C:\Users\23778\Downloads\1.xlsx"
# Content-Type: image/png
< C:\Users\23778\Downloads\1.xlsx
------WebKitFormBoundary7MA4YWxkTrZu0gW--
### 导入类型
POST {{sd_ht}}/importReportType
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
title
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="C:\Users\23778\Downloads\1.xlsx"
# Content-Type: image/png
< C:\Users\23778\Downloads\1.xlsx
------WebKitFormBoundary7MA4YWxkTrZu0gW--
### 导入指定测评
POST {{sd_ht}}/importEvaluation?code=LBD
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
title
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="C:\Users\23778\Downloads\1.xlsx"
# Content-Type: image/png
< C:\Users\23778\Downloads\1.xlsx
------WebKitFormBoundary7MA4YWxkTrZu0gW--
### 导出
POST {{localhost_ht}}/exportReport
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param": {
"id": "1374624446844899328"
}
}
### 查询搜索条件
POST {{localhost_question}}/patientReport/searchParam
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param": {
"parentCode": "KT"
}
}
### 搜索报告单
POST {{test_ht}}/patientReport/search
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param": {
"codes" : [
{
"code":"DXL",
"start":0,
"end": 12
}
],
"pageNum" : 1,
"pageSize" : 15
}
}
### 查询历史报告单
POST {{sxzxyzzlm_question}}/queryReports
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param": {
"patientId": "1369189040502611968",
"pageNum": 1,
"pageSize": 15
}
}

4
README.md

@ -1 +1,3 @@
存放测试文档 存放测试文档
每一个项目创建一个文件夹
每一个模块创建一个http文件

115
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"
}
}

93
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"
}
}

76
tall/project/project.http

@ -1,11 +1,13 @@
@tall = https://www.tall.wiki/gateway/tall/v1.0 @tall = https://www.tall.wiki/gateway/tall/v1.0
@test = https://test.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 @type = content-type: application/json;charset=utf-8
@token= eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2MTczMjg2MDksInN1YiI6IjEyMTgwMjUyNDk0OTMzNTY1NDQiLCJhdXRoSWQiOiIxMTgzNjM2MjkxNjQ5MTQ2ODgwIiwiZXhwIjoxNjE3NDE1MDA5fQ.22OvohHsYtuR527otz6A1p8Ebft9O3UM5bSFysh1Hwc
### 登录 ### 登录
# @name login # @name login
POST {{test}}/users/signin POST {{localhost}}/users/signin
# POST http://localhost:7030/v1.0/users/signin # POST http://localhost:7030/v1.0/users/signin
{{type}} {{type}}
@ -13,8 +15,74 @@ POST {{test}}/users/signin
"client": 1, "client": 1,
"type": 3, "type": 3,
"data": { "data": {
"identifier": "zy11", "identifier": "chen",
"credential": "123465" "credential": "123456"
}
}
### 测试-调用文件系统获取文件信息
GET {{localhost}}/debug/htt
{{type}}
[
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
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
title
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="绿谷研究院项目管理WBS.xlsx"
Content-Type: xlsx
< C:\Users\dou\Desktop\维基后台WBS-1.0-20210324.xlsx
------WebKitFormBoundary7MA4YWxkTrZu0gW--
###

31
中医药/中医药测试.http

@ -1,8 +1,10 @@
### ###
@www = https://www.tall.wiki/gateway/tcm @www = https://www.tall.wiki/gateway/tcm
@test = http://test.tall.wiki/gateway/tcm @test = http://test.tall.wiki/gateway/tcm
@green = https://www.sxwikionline.com/gateway/tcm @wiki = https://www.sxwikionline.com/gateway/tcm
@loaclhost = http://localhost:7150 @loaclhost = http://localhost:7150
@loaclhost_tall = http://localhost:7030/v1.0
@type = content-type: application/json;charset=utf-8 @type = content-type: application/json;charset=utf-8
@ -10,7 +12,7 @@
# @name login # @name login
# POST http://test.tall.wiki/gateway/tall/v1.0/users/signin # POST http://test.tall.wiki/gateway/tall/v1.0/users/signin
POST http://www.tall.wiki/gateway/tall/v1.0/users/signin POST {{loaclhost_tall}}/users/signin
# POST http://localhost:7030/v1.0/users/signin # POST http://localhost:7030/v1.0/users/signin
{{type}} {{type}}
@ -24,18 +26,33 @@ POST http://www.tall.wiki/gateway/tall/v1.0/users/signin
"type": 3 "type": 3
} }
### 通用文字识别
Post {{loaclhost}}/ocr/general/basic
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param": {
"hospitalId":1,
"code":"JLDPLXGCS",
"url":"https://www.tall.wiki/staticrec/test/4.jpg"
}
}
# 1:血常规 2:凝血系列 3:颈动脉超声
### 更新redis内的试题信息 ### 更新redis内的试题信息
# POST {{test}}/import/updateRedis # POST {{test}}/import/updateRedis
POST {{green}}/import/updateRedis POST {{wiki}}/import/updateRedis
{{type}} {{type}}
Authorization: Bearer {{login.response.body.$.data.token}} Authorization: Bearer {{login.response.body.$.data.token}}
### 查看所有试题信息 ### 查看所有试题信息
Post {{green}}/question/queryAll Post {{wiki}}/question/queryAll
{{type}} {{type}}
Authorization: Bearer {{login.response.body.$.data.token}} Authorization: Bearer {{login.response.body.$.data.token}}
@ -53,7 +70,7 @@ Authorization: Bearer {{login.response.body.$.data.token}}
### 查看患者的试题和答题信息 ### 查看患者的试题和答题信息
Post {{green}}/question/query Post {{wiki}}/question/query
{{type}} {{type}}
Authorization: Bearer {{login.response.body.$.data.token}} Authorization: Bearer {{login.response.body.$.data.token}}

40
文件管理/file/file.http

@ -0,0 +1,40 @@
@localhost = http://localhost:8001
@testTall = https://test.tall.wiki/gateway/tall/v1.0
@localhostTall = http://localhost:7030/v1.0
@testFile = https://test.tall.wiki/filedeal
@type = content-type: application/json;charset=utf-8
@token = Authorization: Bearer {{login.response.body.$.data.token}}
### 登录
# @name login
POST {{testFile}}/users/signin
{{type}}
{
"client": 1,
"type": 3,
"data": {
"identifier": "zy11",
"credential": "123456"
}
}
### debug
GET {{localhostTall}}/debug/htt
# GET {{testFile}}/debug/htt
{{type}}
[
1321760076465311744
]
### 根据id查询文件信息
POST {{testFile}}/file/query
{{type}}
[
1321760076465311744
]
Loading…
Cancel
Save