Module: 药品获取^2022/07/21

Since:
  • 2022/07/21
Author:
  • zz

Methods

(inner) get /product_load(timestamp, sign, productId, languageopt)

Parameters:
Name Type Attributes Description
timestamp String(10) 时间戳,值为秒值,长度10位,时间戳有效期:±10分钟
sign String(64) 签名
productId String(24) 药品ID
language String(50) <optional>
语种,不传或无值将维持默认语种(简体中文)不会转换简繁体文字内容,目前支持:simplifiedChinese:简体中文,traditionalChinese:繁体中文
Properties:
Name Type Attributes Default Description
_id String(24) 药品ID
title String(50) 药品名称
doctorId String(24) <optional>
医生ID
content String(5000) <optional>
药品介绍
price Number <optional>
0 单价,元
images Array.<Object> <optional>
药品图片
Properties
Name Type Description
name String(100) 图片文件名
url String(500) 图片地址
size Number 图片大小
width Number 图片宽度
height Number 图片高度
isdeleted Boolean <optional>
false 删除标记,true为删除状态
createdAt Date 创建日期
updatedAt Date 更新日期
Throws:
400 缺少productId
Examples
请求示例:/product_load?productId=62d93bd8b8422700110b5f03&sign=29B95FBA8B10FEDFDCD4C9BC172F31AFA687DFA6B9241E69F3E59E873B6CF924&timestamp=1570428513
返回示例:
  {
    "_id": "62d93bd8b8422700110b5f03",
    "title": "汤成倍健鱼油牛磺酸锌软胶囊",
    "doctorId": "5e0445db99791d7398ccb1ba",
    "content": "90粒/瓶 青少年学生深海鱼油记忆力保健食品不能替代药品",
    "price": 158,
    "images": [
      {
        "name": "9b97a83390ed074d.jpg",
        "url": "https://img13.360buyimg.com/n1/jfs/t1/203211/34/24344/226543/62ad9f6aE0db0ebaa/9b97a83390ed074d.jpg",
        "size": 34728,
        "width": 500,
        "height": 600
      }
    ],
    "createdAt": "2022-07-21T11:43:20.426Z",
    "updatedAt": "2022-07-21T11:43:20.426Z"
  }