Module: 药品修改^2022/07/21

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

Methods

(inner) post /product_modify(timestamp, sign, productId, JSON)

Parameters:
Name Type Description
timestamp String(10) 时间戳,值为秒值,长度10位,时间戳有效期:±10分钟
sign String(64) 签名
productId String(24) 药品ID
JSON Object body参数
Properties
Name Type Attributes Default Description
title String(50) <repeatable>
药品名称
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 图片高度
Properties:
Name Type Description
success Boolean true为修改成功,否则失败
productId String(24) 药品ID
Throws:
400 缺少title 400 缺少productId
Examples
请求示例:/product_modify?productId=5e1b32e6a8bead28981cfefe&sign=29B95FBA8B10FEDFDCD4C9BC172F31AFA687DFA6B9241E69F3E59E873B6CF924&timestamp=1570428513
请求JSON参数:
  {
    "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
      }
    ]
  }
返回示例:
  {
    "success": true,
    "productId": "5e1b32e6a8bead28981cfefe"
  }