简要描述:

  • 门店商品礼包

请求URL:

GET/plugin.store-cashier.frontend.store.aggregate-page.goods-gift

参数:

参数名 是否必须 类型 说明
page int 分页数

返回示例:

正确时返回:

{
    "result": 1, 
    "msg": "list", 
    "data": {
        "total": 1, 
        "per_page": 15, 
        "current_page": 1, 
        "last_page": 1, 
        "next_page_url": null, 
        "prev_page_url": null, 
        "from": 1, 
        "to": 1, 
        "data": [
            {
                "id": 190, 
                "title": "门店6 商品2222", 
                "thumb": "http://localhost/attachment/images/6/2018/06/hZqM1jQqjFmBhQ5JqQ48qSF5dmMMQZ.jpg", 
                "price": "101.00", 
                "market_price": "210.00", 
                "cost_price": "100.00", 
                "stock": 1235, 
                "sku": "个", 
                "display_order": 3, 
                "vip_price": "101.00", 
                "has_one_store_goods": {
                    "id": 26, 
                    "goods_id": 190, 
                    "store_id": 6, 
                    "created_at": "2018-09-06 17:07:51", 
                    "updated_at": "2019-04-28 16:06:09", 
                    "deleted_at": null, 
                    "goods_gift": 1
                }, 
                "has_many_goods_discount": [
                    {
                        "id": 2460, 
                        "goods_id": 190, 
                        "level_discount_type": 1, 
                        "discount_method": 1, 
                        "level_id": 9, 
                        "discount_value": "0.00", 
                        "updated_at": "2019-04-28 15:18:28", 
                        "created_at": "2019-04-28 15:18:28"
                    }, 
                    {
                        "id": 2459, 
                        "goods_id": 190, 
                        "level_discount_type": 1, 
                        "discount_method": 1, 
                        "level_id": 8, 
                        "discount_value": "0.00", 
                        "updated_at": "2019-04-28 15:18:27", 
                        "created_at": "2019-04-28 15:18:27"
                    }, 
                    {
                        "id": 2458, 
                        "goods_id": 190, 
                        "level_discount_type": 1, 
                        "discount_method": 1, 
                        "level_id": 7, 
                        "discount_value": "0.00", 
                        "updated_at": "2019-04-28 15:18:26", 
                        "created_at": "2019-04-28 15:18:26"
                    }, 
                    {
                        "id": 2457, 
                        "goods_id": 190, 
                        "level_discount_type": 1, 
                        "discount_method": 1, 
                        "level_id": 0, 
                        "discount_value": "0.00", 
                        "updated_at": "2019-04-28 15:18:25", 
                        "created_at": "2019-04-28 15:18:25"
                    }
                ]
            }
        ]
    }
}

错误时返回:

返回参数说明:

参数名 类型 说明
total int 数据总条数
per_page int 每页显示条数
current_page int 当前页数
last_page int 最后一页数

data参数说明:

参数名 类型 说明
id int 商品id
title string 商品名称
thumb string 商品图片
price int 商品价格
market_price int 商品原价
data.has_one_store_goods.store_id int 门店id

备注:

  • 更多返回错误代码请看首页的错误代码描述