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.

374 lines
7.6 KiB

4 years ago
@localhost = http://localhost:7260/v2.0
@localhost_tall = http://localhost:7130/v3.0
@test_tall = http://192.168.0.99:7130/v3.0
4 years ago
@test = https://test.tall.wiki/gateway/yanyuan/v2.0/
4 years ago
@www_tall = http://www.tall.wiki:7130/v3.0
@www = http://www.tall.wiki/gateway/yanyuan/v2.0/
@type = content-type: application/json;charset=utf-8
### 登录
4 years ago
# song 1218763410024566784
4 years ago
# @name login
4 years ago
POST {{localhost_tall}}/users/signin
4 years ago
{{type}}
{
"client": 1,
"type": 3,
"data": {
4 years ago
"identifier": "song",
"credential": "999999"
4 years ago
}
}
### debug
GET {{test}}/debug
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
###绑定工具箱
4 years ago
POST {{localhost}}/tool/bind
4 years ago
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
4 years ago
"toolCode":"0000000003"
4 years ago
}
}
4 years ago
###查询登录用户身份
POST {{test}}/userPower/identity
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
}
4 years ago
###添加用户信息
POST {{test}}/trainee/add
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"userName":"李四",
4 years ago
"sex":"1",
4 years ago
"clinicHospital":"就诊医院",
"hospitalProvinceId":"1",
"hospitalCityId":"2",
"hospitalAddress":"迎泽区XXX",
"clinicOffice":"神经内科",
"clinicDoctor":"赵医生",
"birthDate":"1965-08-01",
"height":"170",
"weight":"66",
"jobTitle":"农林渔牧",
"educateStatus":"小学",
"educateDate":"6",
"abodePlace":"太原市小店区",
"appearTime":"2021-01-01",
"diagnoseTime":"2021-02-01",
"diagnoseResult":"轻度痴呆",
"minBloodPressure":"90",
"maxBloodPressure":"120",
"bloodFat":"80",
"physicalAct":"中",
"apoeGene":"1",
"diseasesRecord":"没有疾病史",
"relativeDiseasesRecord":"亲属均无老年痴呆",
"isInsomnic":0,
"insomnicPeriod":"8",
"isSmoke":1,
"quitPeriod":2,
"sustainPeriod":3,
"averageNum":5,
"isDrink":2,
"abstinencePeriod":"2年",
"drinkType":"啤酒",
"isTea":"3",
"quitTea":"",
"continuePeriod":"1年",
"teaType":"绿茶",
"teaPeriod":"每天一杯",
"isStrongFlavour":1,
"isLikeMeat":1,
"isMoreOil":0
4 years ago
}
}
###查询绑定者创建的患者信息(申请成为家属前调用)
POST {{test}}/trainee/create
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
4 years ago
"bindUserId":"1218025249493356544"
}
}
###绑定手机号后,关联用户原有的使用者
POST {{test}}/trainee/relation
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
}
###生成二维码
POST {{test}}/tool/qrCode
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"id":"1"
}
}
###体验账号升级
POST {{test}}/trainee/upgrade
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"keyUserIds":[
"1456525052375470081"
]
}
}
###查询个人信息
POST {{test}}/family/personal
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
}
###申请成为家属
POST {{test}}/family/apply
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"keyUserIds":[
"1456525052375470080",
"1456525052375470081"
],
"age":25,
"educateLevel": "本科",
"jobTitle": "码农",
"name": "小伙伴",
"sex": 1
4 years ago
}
}
4 years ago
###查询试题
POST {{test}}/question/get
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"code":"NLCP",
4 years ago
"reportId": "1464155290781618176",
"num": "17"
}
}
###保存答案
4 years ago
POST {{test}}/question/saveAnswer
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"code":"NLCP",
"reportId": "1459057596971094016",
"questionId": "21",
"optionId": "1"
}
}
###脑力测评结果计算
4 years ago
POST {{test}}/mentalTest/calculate
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
4 years ago
"mentalTestId": "1458968153773838336"
}
}
4 years ago
###查询定期任务
POST {{test}}/task/regular
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"projectId": "1460455105006145536",
"templateCode": "yanyuan-user",
"roleId":"1",
"queryNum":2,
"queryType":0
}
}
###查询训练计划详情
POST {{test}}/trainPlan/detail
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
# "recordId": "1460549920427347968"
"recordId": "1460549920452513797"
}
}
###角色查询
POST {{test}}/role/show
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"projectId": "1459057595893157888",
"templateCode": "yanyuan-user"
}
}
###Zarit结果计算
POST {{test}}/zarit/calculate
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"careId": "21"
}
}
4 years ago
###查询工具箱列表
POST {{test}}/tool/queryToolList
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
}
}
4 years ago
###选择工具箱
POST {{localhost}}/trainPlan/chooseTool
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"recordId": "1460549920427347972",
"equipmentId": "2"
}
}
###修改使用者信息
POST {{test}}/trainee/update
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"maxBloodPressure": "97",
"minBloodPressure": "57",
"diseasesRecord": "高血压,其他:其他疾病3",
"relativeDiseasesRecord": "高血脂,其他:其他疾病3",
"projectId": "1460455105006145536"
}
}
###查询使用者信息
POST {{test}}/trainee/query
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"projectId": "1464155289330388992"
}
}
###查询负担量表记录
POST {{test}}/zarit/queryList
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"projectId": "1460455105006145536"
}
}
4 years ago
###查询无主的训练过程
POST {{localhost}}/trainBelong/queryUnknown
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"pageNum": 1,
"pageSize": 10
}
}
###查询关联的使用者信息
POST {{localhost}}/trainee/queryRelation
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
}
}
###查询指定日期前后一周的训练计划
POST {{localhost}}/trainPlan/queryRecent
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"keyUserId": 1464166326922383360,
"time": 1638773109000
}
}
###选择老人 (6,1) (3,0)
POST {{localhost}}/trainBelong/chooseRecord
{{type}}
Authorization: Bearer {{login.response.body.$.data.token}}
{
"param":{
"trainRecordId": 3,
"resultType": 0,
"recordId": 1465510253751439362
}
}
4 years ago
### 导入题目
POST {{test}}/question/importQuestion
Authorization: Bearer {{login.response.body.$.data.token}}
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
title
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="param"; filename="D:\项目\山大一院-燕园\过程\导入\燕园Zarit导入v1.0.xlsx"
< D:\项目\山大一院-燕园\过程\导入\燕园Zarit导入v1.0.xlsx
------WebKitFormBoundary7MA4YWxkTrZu0gW--