Methods
(inner) get /disease_type(findopt, sortNameopt, orderopt, timestamp, sign, pageSizeopt, pageopt)
Parameters:
Name |
Type |
Attributes |
Default |
Description |
find |
String(500)
|
<optional>
|
|
查询条件,json文本,示例:{"title":{"$regex":"内科"}} |
sortName |
String(20)
|
<optional>
|
createdAt
|
排序列名,默认createdAt |
order |
Number
|
<optional>
|
-1
|
排序参数,默认-1,1 为升序排列,-1 为降序排列 |
timestamp |
String(10)
|
|
|
时间戳,值为秒值,长度10位,时间戳有效期:±10分钟 |
sign |
String(64)
|
|
|
签名 |
pageSize |
Number
|
<optional>
|
20
|
分页行数 |
page |
Number
|
<optional>
|
1
|
页码 |
Properties:
Name |
Type |
Description |
total |
Number
|
总行数 |
data |
Array.<Object>
|
当前页数据
Properties
Name |
Type |
Attributes |
Default |
Description |
_id |
String(24)
|
|
|
科目id |
title |
String(50)
|
|
|
标题 |
parent |
String(50)
|
<optional>
|
|
父科目ID |
desc |
String(500)
|
<optional>
|
|
描述 |
root |
Boolean
|
<optional>
|
false
|
是否根目录,true为根目录 |
createdAt |
Date
|
|
|
创建时间 |
updatedAt |
Date
|
|
|
更新时间 |
|
Examples
请求示例:/disease_type?timestamp=1570430721&pageSize=20&page=1&sign=725085C8A709A4F16183B26FBB9E67A156A2F3D82D47CE00A067902EA006FA15
返回示例:
{
"total": 2,
"data": [
{
"root": false,
"_id": "624a7ce7fc8bd0001116df17",
"title": "安徽省轻型治疗方案",
"desc": "",
"createdAt": "2022-04-04T05:06:47.779Z",
"updatedAt": "2022-10-24T02:58:22.431Z"
},
{
"root": false,
"_id": "62202af21444ab0011f479a8",
"title": "香港新冠中医诊疗加减方案",
"createdAt": "2022-03-03T02:41:54.516Z",
"updatedAt": "2022-09-26T01:16:51.755Z",
"desc": "适合高龄及体虚患者的中药配方加减方案"
}
]
}