商品库管理
简要描述
- 商品库管理
请求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-娱乐