Skip to content

接口

station

修改接口

/staion/order/edit/ [method: GET]

现在后端输出的数据中有 district_name 字段

创建SPU /merchandise/spu/create

加一个参数 need_pesticide_detect 不需要检测报告的,False,否则 True

权限控制,如果没有 edit_pesticidedetect 权限的,不传

编辑SPU /merchandise/spu/update

加一个参数 need_pesticide_detect 不需要检测报告的,False,否则 True

权限控制,如果没有 edit_pesticidedetect 权限的,不传

SPU明细 /merchandise/spu/details

加一个字段 need_pesticide_detect

权限控制,如果没有 edit_pesticidedetect 权限的,不传

添加接口

订单内需要检测的SPU /station/order/pesticide_detect_spus

接口
    /station/order/pesticide_detect_spus
Method
    GET
请求
    order_id    M   string  订单号
响应
    code    M   int     返回码,0表示成功,其他表示错误
    msg     M   string  错误信息
    data    M   string  返回列表
    [{
        'id'    M   string  spuid
        'name'  M   string  spu名字
    }]
逻辑
    - 必须要有 view_pesticidedetect 权限
    - 拉取订单内 sku 对应的 SPU 中 need_pesticide_detect 为 True 的 SPU

merchandise

对于所有 station 用到的接口,需要在商品库微服务中对应的接口中增加 need_pesticide_detect 字段

数据库

product[mongo] 中增加 need_pesticide_detect 字段。

权限

增加两个权限:

  • 录入检测报告:订单/view_pesticidedetect。用于商品库。

  • 检测控制:spu/edit_pesticidedetect。用户订单详情。