|
|
|
@localhost = http://localhost:7260/v2.0
|
|
|
|
@localhost_tall = http://localhost:7130/v3.0
|
|
|
|
@test_tall = http://192.168.0.99:7130/v3.0
|
|
|
|
@test = https://test.tall.wiki/gateway/yanyuan/v2.0/
|
|
|
|
@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
|
|
|
|
|
|
|
|
### 登录
|
|
|
|
# song 1218763410024566784
|
|
|
|
# @name login
|
|
|
|
POST {{localhost_tall}}/users/signin
|
|
|
|
{{type}}
|
|
|
|
|
|
|
|
{
|
|
|
|
"client": 1,
|
|
|
|
"type": 3,
|
|
|
|
"data": {
|
|
|
|
"identifier": "song",
|
|
|
|
"credential": "999999"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
### debug
|
|
|
|
GET {{test}}/debug
|
|
|
|
{{type}}
|
|
|
|
Authorization: Bearer {{login.response.body.$.data.token}}
|
|
|
|
|
|
|
|
###绑定工具箱
|
|
|
|
POST {{localhost}}/tool/bind
|
|
|
|
{{type}}
|
|
|
|
Authorization: Bearer {{login.response.body.$.data.token}}
|
|
|
|
|
|
|
|
{
|
|
|
|
"param":{
|
|
|
|
"toolCode":"0000000003"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
###查询登录用户身份
|
|
|
|
POST {{test}}/userPower/identity
|
|
|
|
{{type}}
|
|
|
|
Authorization: Bearer {{login.response.body.$.data.token}}
|
|
|
|
|
|
|
|
{
|
|
|
|
}
|
|
|
|
###添加用户信息
|
|
|
|
POST {{test}}/trainee/add
|
|
|
|
{{type}}
|
|
|
|
Authorization: Bearer {{login.response.body.$.data.token}}
|
|
|
|
|
|
|
|
{
|
|
|
|
"param":{
|
|
|
|
"userName":"李四",
|
|
|
|
"sex":"1",
|
|
|
|
"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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
###查询绑定者创建的患者信息(申请成为家属前调用)
|
|
|
|
POST {{test}}/trainee/create
|
|
|
|
{{type}}
|
|
|
|
Authorization: Bearer {{login.response.body.$.data.token}}
|
|
|
|
|
|
|
|
{
|
|
|
|
"param":{
|
|
|
|
"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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
###查询试题
|
|
|
|
POST {{test}}/question/get
|
|
|
|
{{type}}
|
|
|
|
Authorization: Bearer {{login.response.body.$.data.token}}
|
|
|
|
|
|
|
|
{
|
|
|
|
"param":{
|
|
|
|
"code":"NLCP",
|
|
|
|
"reportId": "1464155290781618176",
|
|
|
|
"num": "17"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
###保存答案
|
|
|
|
POST {{test}}/question/saveAnswer
|
|
|
|
{{type}}
|
|
|
|
Authorization: Bearer {{login.response.body.$.data.token}}
|
|
|
|
|
|
|
|
{
|
|
|
|
"param":{
|
|
|
|
"code":"NLCP",
|
|
|
|
"reportId": "1459057596971094016",
|
|
|
|
"questionId": "21",
|
|
|
|
"optionId": "1"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
###脑力测评结果计算
|
|
|
|
POST {{test}}/mentalTest/calculate
|
|
|
|
{{type}}
|
|
|
|
Authorization: Bearer {{login.response.body.$.data.token}}
|
|
|
|
|
|
|
|
{
|
|
|
|
"param":{
|
|
|
|
"mentalTestId": "1458968153773838336"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
###查询定期任务
|
|
|
|
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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
###查询工具箱列表
|
|
|
|
POST {{test}}/tool/queryToolList
|
|
|
|
{{type}}
|
|
|
|
Authorization: Bearer {{login.response.body.$.data.token}}
|
|
|
|
|
|
|
|
{
|
|
|
|
"param":{
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
###选择工具箱
|
|
|
|
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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
###查询无主的训练过程
|
|
|
|
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
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 导入题目
|
|
|
|
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--
|