# API

# 数据字典

# 接口列表

接口        接口说明 请求方式 接口入参 响应
sys/dict-category/select-sort-tree 查询目录树 get 接口响应
sys/dict-category/select-dict-tree 查询目录树(带字典) get 接口响应
sys/dict/select-pcode 根据字典编码查询字典项 get code(字典编码) 接口响应

# 查询目录树

接口请求demo

http://114.242.246.250:8611/api/sys/dict-category/select-sort-tree

接口请求头

GET /api/sys/dict-category/select-sort-tree?_t=1655950095143 HTTP/1.1
Accept: application/json, text/plain, */*
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Connection: keep-alive
Host: 114.242.246.250:8611
Origin: http://localhost:8080
Referer: http://localhost:8080/
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36
access-token: mediway_eyJhbGciOiJIUzI1NiJ9.eyJ0b2tlbi10eXBlIjoiYWNjZXNzX3Rva2VuIiwiZXhwIjoxNjU1OTU1NDEyLCJ1c2VyIjoie1wib3JnTmFtZVwiOlwibnVsbFwiLFwicm9sZUlkXCI6XCIwMGM3OGVjYWJiZTA5NjcyYTllZDc0YzQxOWQxNGM3YVwiLFwidXNlcklkXCI6XCIxXCIsXCJ1c2VyQ29kZVwiOlwiXCIsXCJvcmdJZFwiOlwibnVsbFwiLFwibG9naW5OYW1lXCI6XCJhZG1pblwiLFwicm9sZUNvZGVcIjpcImV2ZXJ5b25lXCIsXCJ0ZW5hbnRJZFwiOlwiXCIsXCJyb2xlTmFtZVwiOlwi55So5oi3XCIsXCJuYW1lXCI6XCLnrqHnkIblkZhcIixcImluaXRMb2dpblRpbWVcIjoxNjU1OTQ4MjEyNzM5LFwiZ3JhbnRUeXBlXCI6XCJwYXNzd29yZFwiLFwiaW5zdE5hbWVcIjpcIlwifSIsImp0aSI6Ill6QTFaVGhrT0dNdE1XTm1NUzAwWVdNNUxXSmpZV0V0WlRVM05qWmtaVEEwWm1VMCJ9.XwKsPPr4EXiiA_UTIfrGQVhNlyAzvJWRoNyc4DL9Lwk
role-id: 00c78ecabbe09672a9ed74c419d14c7a

响应参数 目录树/目录树(带字典)数据格式一样只是type类型不同字典是dict,目录是sort

{
    "code": "200",
    "msg": "success",
    "data": [
        {
            "id": "ecdfde93eb5f439289186f1f45e88fbf",
            "parentId": "0",
            "children": [
                {
                    "id": "6b8c8db02355440898ffb57e4a52c074",
                    "parentId": "ecdfde93eb5f439289186f1f45e88fbf",
                    "children": [
                        {
                            "id": "b5a5eb420efd45618f4d28056ef09747",
                            "parentId": "6b8c8db02355440898ffb57e4a52c074",
                            "label": "我是字典",
                            "key": "zdian",
                            "value": null,
                            "type": "dict"
                        }
                    ],
                    "leaf": false,
                    "label": "角色管理",
                    "key": "role",
                    "value": null,
                    "type": "sort"
                },
                {
                    "id": "35481385c8c146dc8e93eea65def9f76",
                    "parentId": "ecdfde93eb5f439289186f1f45e88fbf",
                    "label": "用户管理",
                    "key": "user",
                    "value": null,
                    "type": "sort"
                }
            ],
            "leaf": false,
            "label": "基础应用",
            "key": "base",
            "value": null,
            "type": "sort"
        }
    ],
    "success": true
}

# 根据字典编码查询字典项

接口请求demo

http://114.242.246.250:8611/api/sys/dict/select-pcode?code=base-user-type

接口请求头

GET /api/sys/dict/select-pcode?_t=1655951504951&code=base-user-type HTTP/1.1
Accept: application/json, text/plain, */*
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Connection: keep-alive
Host: 114.242.246.250:8611
Origin: http://114.242.246.250:8610
Referer: http://114.242.246.250:8610/
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36
access-token: mediway_eyJhbGciOiJIUzI1NiJ9.eyJ0b2tlbi10eXBlIjoiYWNjZXNzX3Rva2VuIiwiZXhwIjoxNjU1OTU3ODE0LCJ1c2VyIjoie1wib3JnTmFtZVwiOlwibnVsbFwiLFwicm9sZUlkXCI6XCIwMGM3OGVjYWJiZTA5NjcyYTllZDc0YzQxOWQxNGM3YVwiLFwidXNlcklkXCI6XCIxXCIsXCJ1c2VyQ29kZVwiOlwiXCIsXCJvcmdJZFwiOlwibnVsbFwiLFwibG9naW5OYW1lXCI6XCJhZG1pblwiLFwicm9sZUNvZGVcIjpcImV2ZXJ5b25lXCIsXCJ0ZW5hbnRJZFwiOlwiXCIsXCJyb2xlTmFtZVwiOlwi55So5oi3XCIsXCJuYW1lXCI6XCLnrqHnkIblkZhcIixcImluaXRMb2dpblRpbWVcIjoxNjU1OTUwNjE0Njk2LFwiZ3JhbnRUeXBlXCI6XCJwYXNzd29yZFwiLFwiaW5zdE5hbWVcIjpcIlwifSIsImp0aSI6IlpUZ3paVGxoTUdZdFl6SXpZUzAwWW1VekxXRTFNV0l0TTJOaE5EZzBaakJrTm1JeiJ9.i47LxXgTQ2aA6_V75nlqXMkDZC8GpQUO6hDxrgSNr0o

响应数据

{"code": "200","msg": "success","data": [{"label": "男","value": "1"},{"label": "女","value": "2"}],"success": true}
)

# 系统参数

# 接口列表

接口        接口说明 请求方式 接口入参 响应
sys/config/select-init 查询用户登录后加载的配置信息 get 接口响应

# 查询用户登录后加载的配置信息

接口请求demo

http://localhost:8080/api/sys/config/select-init

接口请求头

GET /api/sys/config/select-init?_t=1655951504951 HTTP/1.1
Accept: application/json, text/plain, */*
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Connection: keep-alive
Host: localhost:8080
Origin: http://localhost:8080
Referer: http://localhost:8080/
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36
access-token: mediway_eyJhbGciOiJIUzI1NiJ9.eyJ0b2tlbi10eXBlIjoiYWNjZXNzX3Rva2VuIiwiZXhwIjoxNjU1OTU3ODE0LCJ1c2VyIjoie1wib3JnTmFtZVwiOlwibnVsbFwiLFwicm9sZUlkXCI6XCIwMGM3OGVjYWJiZTA5NjcyYTllZDc0YzQxOWQxNGM3YVwiLFwidXNlcklkXCI6XCIxXCIsXCJ1c2VyQ29kZVwiOlwiXCIsXCJvcmdJZFwiOlwibnVsbFwiLFwibG9naW5OYW1lXCI6XCJhZG1pblwiLFwicm9sZUNvZGVcIjpcImV2ZXJ5b25lXCIsXCJ0ZW5hbnRJZFwiOlwiXCIsXCJyb2xlTmFtZVwiOlwi55So5oi3XCIsXCJuYW1lXCI6XCLnrqHnkIblkZhcIixcImluaXRMb2dpblRpbWVcIjoxNjU1OTUwNjE0Njk2LFwiZ3JhbnRUeXBlXCI6XCJwYXNzd29yZFwiLFwiaW5zdE5hbWVcIjpcIlwifSIsImp0aSI6IlpUZ3paVGxoTUdZdFl6SXpZUzAwWW1VekxXRTFNV0l0TTJOaE5EZzBaakJrTm1JeiJ9.i47LxXgTQ2aA6_V75nlqXMkDZC8GpQUO6hDxrgSNr0o

响应数据

{
"code": "200",
    "msg": "success",
    "data": [{
      "code": "roleType",
      "value": "1"

}],
    "success": true
}

# 图标管理

# 接口列表

接口        接口说明 请求方式 接口入参 响应
sys/icon/select-by-code 根据图标编码查询图标地址 get code(图标编码) 接口响应

# 根据图标编码查询图标地址

接口请求demo

http://111.205.6.233:8121/api/sys/icon/select-by-code

接口请求头

GET /api/sys/icon/select-by-code?code=jiaobanben

响应数据

{
  "code": "200",
  "msg": "操作成功",
  "data": "http://114.251.235.6:30452/hosminio/upload/2023-06-15/d26b020a-4d5b-4c89-9d50-0ad2cd5129b3.png",
  "success": true
}

# 临床决策支持管理

# 接口列表

接口        接口说明 请求方式 接口入参 响应
syscdssauthorize/get-syscdss 获取临床决策 get accountId(账号ID),postId(岗位ID) 接口响应

# 获取临床决策

接口请求demo

http://111.205.6.233:8121/api/syscdssauthorize/get-syscdss

接口请求头

GET http://111.205.6.233:8121/api/syscdssauthorize/get-syscdss?accountId=7fd0d184f5834191b6727cbac90702e8&postId=e0f799ea7442f66ea0b6c541e6fcb120

响应数据

{
  "code": "200",
  "msg": "操作成功",
  "data": [
    {
      "id": "3506bed207dd5c9a3ed1267266b6a569",
      "createTime": "2023-04-25 16:05:28",
      "updateTime": "2023-04-25 16:22:16",
      "current": 0,
      "size": 0,
      "page": 0,
      "rows": 0,
      "sort": null,
      "order": null,
      "code": "vvcccc",
      "name": "vv",
      "organizationId": "rrr",
      "organizationName": null,
      "version": "vv",
      "link": "vv",
      "params": "vv",
      "actived": false,
      "createBy": "3e2bdf84f7b4f94be2d8a72135f6c925",
      "updateBy": "3e2bdf84f7b4f94be2d8a72135f6c925",
      "tenantId": "",
      "isDeleted": 0
    },
    {
      "id": "704be3a485f1df29f2033176dc7fa1e3",
      "createTime": "2023-05-17 15:26:02",
      "updateTime": "2023-06-02 10:40:39",
      "current": 0,
      "size": 0,
      "page": 0,
      "rows": 0,
      "sort": null,
      "order": null,
      "code": "001",
      "name": "测试0001",
      "organizationId": "efced6024e9dde161f233a822669beeb",
      "organizationName": null,
      "version": "version1.0",
      "link": "",
      "params": "",
      "actived": true,
      "createBy": "3e2bdf84f7b4f94be2d8a72135f6c925",
      "updateBy": "3e2bdf84f7b4f94be2d8a72135f6c925",
      "tenantId": "",
      "isDeleted": 0
    }
  ],
  "success": true
}

# 内联菜单

# 接口列表

接口        接口说明 请求方式 接口入参 响应
/sys/resource-inline/list-menu 获取已授权菜单 get resourceMId(主菜单ID) 接口响应

# 获取已授权菜单

接口请求demo

http://111.205.6.233:8121/api/sys/resource-inline/list-menu

接口请求头

GET http://111.205.6.233:8161/api/sys/resource-inline/list-menu?resourceMId=35f2150795818e3aa2d59057b2a649ba

响应数据

{
  "code": "200",
  "msg": "操作成功",
  "data": {
    "menus": [
      {
        "id": "028607fe045433860bd261d37fd5d50f",
        "current": 0,
        "size": 0,
        "page": 0,
        "rows": 0,
        "sort": null,
        "order": null,
        "parentId": "0",
        "ancestors": "[0]",
        "code": "test010",
        "name": "停启用编辑测试01",
        "type": "C",
        "router": "",
        "openType": "0",
        "frame": false,
        "cached": true,
        "visible": true,
        "icon": "hos-icom-star-light-yellow",
        "weight": null,
        "remark": "",
        "urlPrefix": "",
        "categoryLocation": "left",
        "pageProperties": "[]",
        "advancedJs": "",
        "resourceId": "35f2150795818e3aa2d59057b2a649ba",
        "category": "biz",
        "individuation": null,
        "withToken":false,
        "async": true,
        "resParams": {},
        "params": [
          {
            "type": "dynamic",
            "name": "111",
            "value": "test003"
          }
        ],
        "hasPagePreset": false,
        "leaf": true
      },
      {
        "id": "1456c3fbbf6dc9f70381fa61a1aef4cb",
        "current": 0,
        "size": 0,
        "page": 0,
        "rows": 0,
        "sort": null,
        "order": null,
        "parentId": "0",
        "ancestors": "[0]",
        "code": "test005",
        "name": "测试参数目录01",
        "type": "M",
        "router": "www.baidu.comde?de=&de=1123&fr=&re=",
        "openType": "0",
        "frame": false,
        "cached": true,
        "visible": true,
        "icon": "hos-icon-menu",
        "weight": null,
        "remark": "",
        "urlPrefix": "",
        "categoryLocation": "",
        "pageProperties": "[]",
        "advancedJs": "testtest",
        "resourceId": "35f2150795818e3aa2d59057b2a649ba",
        "category": "biz",
        "individuation":{
          "visibility": true,
          "countVisibility":true,
          "count": 33,
          "color": "red"
        },
        "withToken":false,
        "async": true,
        "resParams": {
          "isVisisble":true, 
          "isRefresh": false
        },
        "params": [
          {
            "type": "dynamic",
            "name": "de",
            "value": "test003"
          },
          {
            "type": "fixed",
            "name": "de",
            "value": "1123"
          },
          {
            "type": "dynamic",
            "name": "fr",
            "value": "test003"
          },
          {
            "type": "dynamic",
            "name": "re",
            "value": "test004"
          }
        ],
        "hasPagePreset": false,
        "leaf": true
      },
      {
        "id": "8f786f940fe31127f407915bef613ab8",
        "current": 0,
        "size": 0,
        "page": 0,
        "rows": 0,
        "sort": null,
        "order": null,
        "parentId": "0",
        "ancestors": "[0]",
        "code": "001",
        "name": "测试",
        "type": "C",
        "router": "",
        "openType": "0",
        "frame": false,
        "cached": true,
        "visible": true,
        "icon": "hos-icon-menu",
        "weight": null,
        "remark": "",
        "urlPrefix": "",
        "categoryLocation": "left",
        "pageProperties": "[]",
        "advancedJs": "",
        "resourceId": "35f2150795818e3aa2d59057b2a649ba",
        "category": "biz",
        "individuation":{
          "visibility": true,
          "countVisibility":true,
          "count": 33,
          "color": "red"
        },
        "withToken":false,
        "async": true,
        "resParams": {
          "isVisisble":true, 
          "isRefresh": false
        },
        "params": [
          {
            "type": "dynamic",
            "name": "de",
            "value": "test001"
          },
          {
            "type": "dynamic",
            "name": "de",
            "value": "test001"
          }
        ],
        "children": [
          {
            "id": "7568095800fab121806fa9861f64279d",
            "current": 0,
            "size": 0,
            "page": 0,
            "rows": 0,
            "sort": null,
            "order": null,
            "parentId": "8f786f940fe31127f407915bef613ab8",
            "ancestors": "[0],[8f786f940fe31127f407915bef613ab8]",
            "code": "ceshi1",
            "name": "子目录",
            "type": "M",
            "router": "123123",
            "openType": "0",
            "frame": false,
            "cached": true,
            "visible": true,
            "icon": "hos-icon-menu",
            "weight": null,
            "remark": "",
            "urlPrefix": "",
            "categoryLocation": "left",
            "pageProperties": "[]",
            "advancedJs": "",
            "resourceId": "35f2150795818e3aa2d59057b2a649ba",
            "category": "biz",
            "params": [],
            "hasPagePreset": false,
            "leaf": true
          }
        ],
        "hasPagePreset": false,
        "leaf": false
      },
      {
        "id": "9c7d2b2571878ed6e36241aa156f8e00",
        "current": 0,
        "size": 0,
        "page": 0,
        "rows": 0,
        "sort": null,
        "order": null,
        "parentId": "0",
        "ancestors": "[0]",
        "code": "test0427",
        "name": "myh的Ceshi",
        "type": "M",
        "router": "apptest/test?asas=11111&aaaaa=defaultManagePost123456789",
        "openType": "0",
        "frame": false,
        "cached": true,
        "visible": true,
        "icon": "hos-icon-menu",
        "weight": null,
        "remark": "",
        "urlPrefix": "",
        "categoryLocation": "",
        "pageProperties": "[]",
        "advancedJs": "",
        "resourceId": "35f2150795818e3aa2d59057b2a649ba",
        "category": "biz",
          "individuation":{
                  "visibility": true,
                  "countVisibility":true,
                  "count": 33,
                  "color": "red"
                },
                "withToken":false,
                "async": true,
                "resParams": {
                  "isVisisble":true, 
                  "isRefresh": false
                },
        "params": [
          {
            "type": "fixed",
            "name": "asas",
            "value": "11111"
          },
          {
            "type": "dynamic",
            "name": "aaaaa",
            "value": "post"
          }
        ],
        "hasPagePreset": false,
        "leaf": true
      }
    ],
    "index": null
  },
  "success": true
}