Module: 病症和科目列表^2022/10/13

Since:
  • 2022/10/13
Author:
  • zz

Methods

(inner) get /disease_list(languageopt, timestamp, sign, isPublicopt)

Parameters:
Name Type Attributes Default Description
language String(50) <optional>
语种,不传或无值将维持默认语种(简体中文)不会转换简繁体文字内容,目前支持:simplifiedChinese:简体中文,traditionalChinese:繁体中文 2022/2/28
timestamp String(10) 时间戳,值为秒值,长度10位,时间戳有效期:±10分钟
sign String(64) 签名
isPublic String(5) <optional>
on 包含全局发布的病症,on为包含,默认为on,如果不为on,则只能查看partnerId自有的病症 2022/8/10
Properties:
Name Type Attributes Default Description
_id String(24) id
title String(50) 标题
parent String(50) <optional>
科目ID 2022-8-23
desc String(500) <optional>
描述
price Number <optional>
0 价格 2021/10/20
gender Number <optional>
0 性别,0:通用,1:男性,2:女性 2022/8/24
type Number 类型,1:科目,2:病症
partnerId Object <optional>
合作方信息,type=2时返回 2022/10/13
Properties
Name Type Attributes Description
title String(100) <optional>
合作方名称 2022/10/13
_id String(24) <optional>
合作方ID 2022/10/13
children Array.<Object> 子对象,一般是科目列表或者病症列表
isdeleted Boolean <optional>
false 删除标志位,true为删除 2022/9/9
isPublic Boolean <optional>
false 公开发布标志位,true为公开发布 2022/9/9
createdAt Date 创建时间 2022/8/10
updatedAt Date 更新时间 2022/8/10
Examples
请求示例:/disease_list?timestamp=1570430721&sign=725085C8A709A4F16183B26FBB9E67A156A2F3D82D47CE00A067902EA006FA15
返回示例:
[
  {
    "price": 0,
    "children": [
      {
        "price": 0,
        "children": [
          {
            "price": 0,
            "children": [],
            "_id": "5e3815da27ddaa24a8b0c74b",
            "title": "感冒",
            "desc": "鼻塞、流涕、头痛、咽痛、恶寒、发热等",
            "type": 2,
            "partnerId": {
              "_id": "62eb31f987e3360011785dd3", 
              "title": "辨证云"
            }
          },
          {
            "price": 29.9,
            "children": [],
            "_id": "5e3815da27ddaa24a8b0c7d9",
            "title": "支气管炎【专科】",
            "desc": "支气管粘膜慢性非特异性炎症所引起的咳嗽、咳痰等",
            "type": 2,
            "partnerId": {
              "_id": "62eb31f987e3360011785dd3", 
              "title": "辨证云"
            }
          }
        ],
        "_id": "5d9698bda5575d0cd8e12ad3",
        "title": "呼吸系统疾病",
        "type": 1,
        "desc": "感冒、咳嗽、哮喘、肺痨、咳血、慢支、肺气肿等"
      }
    ],
    "_id": "5d9698341c371a1e783a7f32",
    "title": "内科",
    "type": 1,
    "desc": "呼吸、消化、心脑血管、肝胆肾疾病、糖尿病等"
  },
  {
    "price": 0,
    "children": [],
    "_id": "5d969d113db96d0c6c92e951",
    "title": "外科、皮肤科",
    "type": 1,
    "desc": "湿疹、荨麻疹、痤疮、脱发、牛皮癣、性病等"
  }
]