Appearance
直播间菜单商品列表
请求路径
- 请求方式:
POST - 请求头:
Content-Type:application/json - 接口地址:
https://gateway.nuoyunapi.com/Api/Room/getRoomMenuGoods/2.0.0 - 频率限制:
10秒100次
请求参数
| 参数 | 必选 | 类型 | 描述 |
|---|---|---|---|
| room_id | 是 | integer | 直播间ID |
| uid | 是 | integer | 用户ID |
| custom_menu_id | 是 | integer | 菜单ID |
| page | 是 | integer | 第几页(最小值1) |
| page_size | 是 | integer | 一页显示多少(最小值1,最大值100) |
| keyword | 否 | string | 搜索关键词 |
| custom_menu_goods_category_id | 否 | integer | 竖屏直播间橱窗字段ID(没有传0) |
请求示例
示例1:获取直播间菜单商品列表
json
{
"room_id": 100001,
"uid": 10001,
"custom_menu_id": 1001,
"custom_menu_goods_category_id": 100,
"page": 1,
"page_size": 15
}示例2:搜索指定关键词的商品
json
{
"room_id": 100001,
"uid": 10001,
"custom_menu_id": 1001,
"custom_menu_goods_category_id": 0,
"keyword": "手机",
"page": 1,
"page_size": 20
}响应参数
| 参数 | 必选 | 类型 | 描述 |
|---|---|---|---|
| code | 是 | integer | 状态码:200-成功,400-失败 |
| msg | 是 | string | 提示信息 |
| data | 是 | object | 商品数据 |
data 参数结构
| 参数 | 必选 | 类型 | 描述 |
|---|---|---|---|
| total | 是 | integer | 商品总量 |
| list | 是 | array | 商品列表 |
list 参数结构
| 参数 | 必选 | 类型 | 描述 |
|---|---|---|---|
| id | 是 | integer | 商品ID |
| img | 是 | string | 商品图片 |
| name | 是 | string | 商品名称 |
| unit | 是 | string | 商品单位 |
| is_sku | 是 | integer | 是否SKU商品 1:是 2:否 |
| price | 是 | string | 商品价格 |
| lowest_price | 是 | string | 砍价 - 商品底价 |
| underlined_price | 是 | string | 划线价 |
| stock | 是 | integer | 库存 |
| custom_menu_id | 是 | integer | 菜单ID |
| recommend | 是 | integer | 推荐商品 1:是 |
| explain | 是 | integer | 讲解商品 1:是 2:否 |
| heat_num | 是 | integer | 商品讲解热度 |
| is_display_stock | 是 | integer | 显示状态 1:显示;2:隐藏 |
| welfare_activity_id | 是 | integer | 福利购活动id |
| is_to_store_discount | 是 | integer | 1:到店折扣,2:不是到店折扣 |
| to_store_discount_content | 是 | string | 到店折扣内容 |
| is_coupon_type | 是 | integer | 1:优惠券商品 2:不是优惠券商品 |
| is_show_room | 是 | integer | 是否在直播间显示 1显示 2隐藏 |
| sale_type | 是 | integer | 开售类型 1--立即开售 2--定时开售 |
| sale_time | 是 | integer | 立即开售时间(时间戳) |
| sale_time_date | 是 | string | 立即开售时间 |
| sale_status | 是 | integer | 销售状态 1:关闭 2:开启 |
| seckill | 是 | integer | 秒杀状态。1:关闭;2:开启 |
| seckill_conf | 否 | object | 秒杀配置信息 |
| linkType | 是 | string | 购买方式(text文字链接,pic图片链接,local本地购买,applet小程序购买) |
| link | 是 | string | 购买方式链接 |
| linkPicPath | 是 | string | 购买方式链接(图片) |
| applet_buy_conf_link | 是 | string | 链接 小程序购买 |
| applet_buy_conf_original_id | 是 | string | 原始id 小程序购买 |
| applet_buy_conf_appid | 是 | string | appid 小程序购买 |
| storage | 是 | integer | 库存 |
| groupon_info | 否 | object | 拼团活动信息 |
| bargain_activity_info | 否 | object | 砍价活动信息 |
| is_subject | 是 | integer | 是否是知识付费 1 是 2 不是 |
| type | 是 | string | 商品类型。goods:实体商品,virtual:虚拟商品 |
| sort | 是 | integer | 排序 |
| selling_point | 是 | string | 商品卖点 |
| goods_watch_status | 是 | integer | 商品直播看点状态 1:正常 2:失效 |
| goods_watch_id | 是 | integer | 商品直播看点id |
| goods_watch_expire | 是 | string | 商品直播看点失效时间 |
seckill_conf 参数结构
| 参数 | 必选 | 类型 | 描述 |
|---|---|---|---|
| start_time | 是 | integer | 秒杀开始时间 |
| end_time | 是 | string | 秒杀结束时间 |
| start_timestamp | 是 | integer | 秒杀开始时间(时间戳) |
| end_timestamp | 是 | integer | 秒杀结束时间(时间戳) |
| total_stock | 是 | integer | 秒杀库存 |
| price | 是 | string | 秒杀价格 |
groupon_info 参数结构
| 参数 | 必选 | 类型 | 描述 |
|---|---|---|---|
| people_number | 是 | integer | 团购人数 |
| lowest_price | 是 | string | 最低价格 |
| end_time | 是 | string | 结束时间 |
bargain_activity_info 参数结构
| 参数 | 必选 | 类型 | 描述 |
|---|---|---|---|
| status | 是 | integer | 2-未开始,3-进行中,4-已结束 |
| lowest_price | 是 | string | 底价 |
| end_time | 是 | string | 结束时间 |
响应示例
成功响应示例
json
{
"code": 200,
"data": {
"total": 2,
"list": [
{
"id": 10001,
"img": "https://example.com/images/product1.jpg",
"name": "示例商品1",
"unit": "个",
"is_sku": 2,
"price": "99.00",
"lowest_price": "89.00",
"underlined_price": "129.00",
"stock": 100,
"custom_menu_id": 1001,
"recommend": 1,
"explain": 1,
"heat_num": 50,
"is_display_stock": 1,
"welfare_activity_id": 0,
"is_to_store_discount": 1,
"to_store_discount_content": "{\"type\":\"4\",\"original_price\":129,\"front_money\":99}",
"is_coupon_type": 2,
"is_show_room": 1,
"sale_type": 1,
"sale_time": 0,
"sale_time_date": "",
"sale_status": 2,
"seckill": 1,
"linkType": "local",
"link": "",
"linkPicPath": "",
"applet_buy_conf_link": "",
"applet_buy_conf_original_id": "",
"applet_buy_conf_appid": "",
"storage": 100,
"seckill_conf": {},
"groupon_info": {},
"bargain_activity_info": {},
"is_subject": 2,
"type": "goods",
"sort": 1,
"selling_point": "优质商品,值得购买",
"goods_watch_status": 1,
"goods_watch_id": 1001,
"goods_watch_expire": ""
},
{
"id": 10002,
"img": "https://example.com/images/product2.jpg",
"name": "示例商品2",
"unit": "件",
"is_sku": 2,
"price": "199.00",
"lowest_price": "179.00",
"underlined_price": "259.00",
"stock": 50,
"custom_menu_id": 1001,
"recommend": 0,
"explain": 2,
"heat_num": 30,
"is_display_stock": 1,
"welfare_activity_id": 0,
"is_to_store_discount": 2,
"to_store_discount_content": "",
"is_coupon_type": 2,
"is_show_room": 1,
"sale_type": 1,
"sale_time": 0,
"sale_time_date": "",
"sale_status": 2,
"seckill": 1,
"linkType": "local",
"link": "",
"linkPicPath": "",
"applet_buy_conf_link": "",
"applet_buy_conf_original_id": "",
"applet_buy_conf_appid": "",
"storage": 50,
"seckill_conf": {},
"groupon_info": {},
"bargain_activity_info": {},
"is_subject": 2,
"type": "virtual",
"sort": 2,
"selling_point": "热销商品,限时优惠",
"goods_watch_status": 1,
"goods_watch_id": 1002,
"goods_watch_expire": ""
}
]
},
"msg": "Success"
}搜索无结果示例
json
{
"code": 200,
"msg": "Success",
"data": {
"total": 0,
"list": []
}
}