DYH云

DYH开放接口


商品库管理

简要描述
  • 商品库管理
请求URL
  • 列表/api/contest/goods GET filter: {"step":"webLivePlanTs","name":"","personal":"1"(只看出题的商品)}
  • 添加/api/contest/goods/add POST
  • 编辑/api/contest/goods/edit/:id POST 多传一个contestId
  • 删除/api/contest/goods/del/:ids DELETE

  • 编辑上下架记录/api/contest/goods.goods/editOperate/id/xxx POST 上下架记录id
  • 删除上下架记录/api/contest/goods.goods/delOperate/ids/xxx DELETE 上下架记录id
参数
参数名 必选 类型 说明
name string 名称
step string "webLivePlanTs" 固定值
livePlatform int 直播平台
anchorType int 主播类型
price float 价格
image string 图片
detail string 详情资料
score int 分值
stock int 库存
strengthMerchant string 实力商家
place string 原产地
repurchase float 复购率
belongs int 1私有 2公共
state int 1上架 0下架
返回示例
{
    "code": 20000,
    "msg": "success",
    "time": "2021-09-06 15:28:41",
    "data": {
        "count": 3,
        "list": [
            {
                "contestGoodsId": 3,
                "name": "1",
                "livePlatform": "1",
                "anchorType": 1,
                "price": "0.00",
                "platformId": 527,
                "score": 0,
                "image": "1",
                "detail": "1",
                "status": 1,
                "addTime": "2021-09-06 14:38:43",
                "updateTime": "2021-09-06 14:38:43"
            }
        ]
    }
}
备注
  • livePlatform 直播平台:1-淘宝, 2-抖音, 3-京东, 4-快手
  • anchorType 主播类型:1-亲民, 2-专业,3-娱乐

页面列表

ITEM_HTML