多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# 批发商品列表 >[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 | 商品活动类型,另外列出 | ##### 商品活动类型 ```php public const ACTIVITY_TYPE_TRANS = [ 0 => "普通", 1 => '活动', 2 => '批发', 3 => '团购', 4 => '黄金会员专区', 5 => '提现配额专区', 6 => '0元体验', ]; ``` ##### api说明 ~~~[api] get:/goods/list/wholesale?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": 27, "goods_name": "批发-温度计油炸锅-普", "goods_image": "http://noobcoder.oss-cn-hangzhou.aliyuncs.com/letao/20220110/goods_image-61dba264e4a8e.jpg", "shop_price": 389000, "activity_type": 2, "market_price": 489000, "cost_price": 289000, "unpublished_at": "", "activity_info": { "activity_score": 20, "wholesale_limit": 0, "group_buying_limit": 0, "group_buying_scale": 2, "gold_vip_score": 0 }, "shop_price_format": "3890.00", "market_price_format": "4890.00", "cost_price_format": "2890.00" } ] } } ~~~