简要描述:

  • 获取商品信息

请求域名:

  • http://xx.com

请求URL:

POST:plugin.store-product.api.product.index

###接口标识用法

getGoodsInformation:getGoodsInformation

传输参数:

参数名 是否必须 类型 说明
getGoodsInformation string 默认接口标识
store_id int 门店id

传输参数: search[] 数组

参数名 是否必须 类型 说明
keyword string 商品名称
status int 上下级 0下架 1上架
min_price int 价格区间 ,最小金额
max_price int 价格区间 ,最大金额

###返回参数 list 商品信息

参数名 是否必须 类型 说明
id string 商品id
title string 商品名称
thumb string 商品图片
price decimal 商品价格
status_name string 上下架

###返回参数 catetory_menus 分类信息

参数名 是否必须 类型 说明
children string 二级分类

###成功返回数据

{
    "result": 1,
    "msg": "",
    "data": {
        "getGoodsInformation": {
            "list": {
                "total": 71,
                "per_page": 10,
                "current_page": 1,
                "last_page": 8,
                "next_page_url": "http://www.wq7.com//addons/yun_shop/api.php?page=2",
                "prev_page_url": null,
                "from": 1,
                "to": 10,
                "data": [
                {
                    "id": 2,
                    "uniacid": 3,
                    "brand_id": 0,
                    "type": 1,
                    "status": 1,
                    "display_order": 0,
                    "title": "测试",
                    "thumb": "http://test-1251768088.cosgz.myqcloud.com/images/3/2017/07/a0MxLa5llupZ229MlgmlIEp2iEzeZt.jpg",
                    "thumb_url": null,
                    "sku": "件",
                    "description": "",
                    "content": "",
                    "goods_sn": "",
                    "product_sn": "",
                    "market_price": "10.00",
                    "price": "90.00",
                    "cost_price": "10.00",
                    "stock": 74,
                    "reduce_stock_method": 0,
                    "show_sales": 29,
                    "real_sales": 29,
                    "weight": "0.00",
                    "has_option": 0,
                    "is_new": 1,
                    "is_hot": 0,
                    "is_discount": 0,
                    "is_recommand": 1,
                    "is_comment": 0,
                    "is_deleted": 0,
                    "created_at": "2017-07-28 17:22:42",
                    "deleted_at": null,
                    "updated_at": "2018-01-19 11:07:45",
                    "comment_num": 1,
                    "is_plugin": 0,
                    "plugin_id": 0,
                    "virtual_sales": 0,
                    "no_refund": 0,
                    "need_address": 0,
                    "type2": 1,
                    "serviceFee": null,
                    "serviceOpen": null,
                    "old_id": null,
                    "dispatch_type_ids": null,
                    "status_name": "上架"
                }
            ]
			},
            "requestSearch": {
                "min_price": "50",
                "max_price": "100"
            },
            "catetory_menus": [
                {
                    "id": 1,
                    "name": "分类一",
                    "parent_id": 0,
                    "level": 1,
                    "children": [
                        {
                            "id": 2,
                            "name": "分类二",
                            "parent_id": 1,
                            "level": 2
                        }
                    ]
                },
            ]
        },
        "updateSelect": ""
    }
}