ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# 团购商品列表 >[danger]接口认证:**需要认证** ##### 响应说明 | 字段名 | 字段类型 | 字段说明 | | --- | --- | --- | | has_more | boolean | 是否还有下一页 | | list | array[goods(object)] | 商品列表 | | goods.id | int | 商品id | | goods.goods_name | string | 商品名 | | goods.goods_image | string | 商品图片 | | goods.unpublished_at | sting | 下架时间(结束时间),未设置的时候是"",设置的话是时间格式如"2022-01-31 10:00:38" | | goods.shop_price | int | 商品价格(分),有计算的需要的话可以用这个 | | goods.shop_price_foormat | string | 商品价格,已格式化好的,展示使用 | | goods.market_price | int | 市场价格(分),有计算的需要的话可以用这个 | | goods.market_price_foormat | string | 市场价格,已格式化好的,展示使用 | | goods.cost_price | int | 成本价格(分),有计算的需要的话可以用这个 | | goods.cost_price_foormat | string | 成本价格,已格式化好的,展示使用 | | goods.activity_info.activity_score | float | 收益积分(%) | | goods.activity_info.wholesale_limit | int | 批发限购 | | goods.activity_info.group_buying_limit| int | 团购限购 | | goods.activity_info.group_buying_scale| int | 团购参团人数 | | goods.activity_info.gold_vip_score| int | 养老积分抵扣 | | goods.activity_type | int | 商品活动类型,另外列出 | | goods.group_buy_info |object|团购信息| | goods.group_buy_info.group_buying_start |string|团购开始时间| | goods.group_buy_info.group_buying_countdown|int|团购倒计时(分)| | goods.group_buy_info.group_buying_count|int|当前参团人数| | goods.group_buy_info.group_buying_scale|int|成团人数| | goods.group_buy_info.group_buying_left|int|剩余成团人数| | goods.group_buy_info.group_buying_id|int|拼团id| | goods.group_buy_info.goods_sku_id|int|商品的规格id| | goods.group_buy_info.group_buying_time_left|int|剩余成团时间(秒)| | goods.group_buy_info.group_buying_user_list|array[object]|当前拼团用户列表| | goods.group_buy_info.group_buying_user_list.user_id|int|用户id| | goods.group_buy_info.group_buying_user_list.avatar|string|用户头像| | goods.discount|int|折扣(分)| | goods.discount_format|int|折扣(格式化好的)| ##### 商品活动类型 ```php public const ACTIVITY_TYPE_TRANS = [ 0 => "普通", 1 => '活动', 2 => '批发', 3 => '团购', 4 => '黄金会员专区', 5 => '提现配额专区', 6 => '0元体验', ]; ``` ##### api说明 ~~~[api] get:/goods/list/group?page=1&per_page=5&type=0 int:type=0#类型,0:双人团,1:多人团 int:page=1#页数 int:per_page=5#每页数量 <<< success { "code": 200, "msg": "成功", "data": { "has_more": false, "list": [ { "id": 29, "goods_name": "团购-衣服-规格", "goods_image": "http://noobcoder.oss-cn-hangzhou.aliyuncs.com/letao/20220112/goods_image-61de3872655d3.jpg", "shop_price": 100000, "group_price": 90000, "activity_type": 3, "market_price": 0, "cost_price": 0, "unpublished_at": "", "cate_id": 5, "activity_info": { "activity_score": 20, "wholesale_limit": 0, "group_buying_limit": 5, "group_buying_scale": 2, "gold_vip_score": 0 }, "shop_price_format": 1000, "group_price_format": 900, "market_price_format": 0, "cost_price_format": 0, "sku_info": { "id": 26, "goods_id": 29, "sku_name": "", "sku_full_name": "团购-衣服-规格 ", "withdrawal_score": 0, "group_price": 90000, "shop_price": 100000 }, "group_buy_info": {}, "discount": 10000, "discount_format": 100 }, { "id": 25, "goods_name": "团2-益惠堂阿胶固元糕", "goods_image": "http://noobcoder.oss-cn-hangzhou.aliyuncs.com/letao/20220110/goods_image-61db9bd49198e.jpg", "shop_price": 138000, "group_price": 0, "activity_type": 3, "market_price": 189000, "cost_price": 33300, "unpublished_at": "", "cate_id": 5, "activity_info": { "activity_score": 20, "wholesale_limit": 0, "group_buying_limit": 0, "group_buying_scale": 2, "gold_vip_score": 0 }, "shop_price_format": 1380, "group_price_format": 0, "market_price_format": 1890, "cost_price_format": 333, "sku_info": { "id": 22, "goods_id": 25, "sku_name": "", "sku_full_name": "团2-益惠堂阿胶固元糕 ", "withdrawal_score": 0, "group_price": 0, "shop_price": 138000 }, "group_buy_info": {}, "discount": 138000, "discount_format": 1380 } ] } } ~~~