简要描述:

  • 搜索商品

请求URL:

POST/wapapi/addons/execute/addons/integral/controller/integral/action/goodsList

参数:

参数名 是否必须 类型 说明 例子
search_text string 搜索关键字
page_index int 当前页数
page_size int 每页数目
order string 排序字段 point_exchange:积分
sales:兑换量
sale_date:上下架时间
sort string 排序 ASC,DESC
category_id int/string 分类id
shop_id int 商品类型是自营店时,需要店铺id

返回示例:

正确时返回:

{
    "code": 1,
    "message": "",
    "data": {
        "goods_list": [
            {
                "goods_id": 3,
                "goods_name": "111",
                "logo": "http://sit.vslai.com.cn/upload/17/common/1545728380.jpg",
                "point_exchange": 1,
                "price": "1.00",
                "type": "余额"
            },
            {
                "goods_id": 4,
                "goods_name": "礼品券",
                "logo": "http://sit.vslai.com.cn/upload/17/common/1545728380.jpg",
                "point_exchange": 1,
                "price": "1.00",
                "type": "礼品券"
            }
        ],
        "total_count": 2,
        "page_count": 1
    }
}

返回参数说明

参数名 类型 说明
goods_list array 商品列表
goods_id int/string 商品id
goods_name string 商品名字
price float 原价
point_exchange int 购买时消耗积分
logo string 商品图资源
type string 商品类型