API接口文档

搜索商品列表

创建于 2021-11-15 / 最近更新于 2021-11-15 / 82

简要描述

搜索商品列表

接口版本

版本号 制定人 制定日期 修订日期
1.0.0 Devil 2020-10-07

请求URL

search/datalist

请求方式

POST

公共参数

参数名 是否必须 类型 默认值 描述
application string web 请求应用、参考公共中详解
application_client_type string pc 请求客户端、参考公共中详解
token string token

请求参数

{
    "wd": "",
    "page": 1,
    "category_id": 0,
    "brand_id": 0
}
参数名 是否必须 类型 默认值 描述
page array 分页
wd int 关键字
category_id int 指定分类id
brand_id int 指定品牌id
category_ids array 搜索条件多个分类id
brand_ids array 搜索条件多个品牌id
goods_params_values array 搜索条件多个参数值
goods_spec_values array 搜索条件多个规格值
screening_price_values array 搜索条件多个价格区间值

返回示例

正确时返回

{
    "msg": "success",
    "code": 0,
    "data": {
        "page_total": 1,
        "total": 1,
        "data": [
            {
                "id": "2",
                "shop_id": "1",
                "shop_user_id": "19",
                "shop_category_id": "1",
                "shop_settle_price": "0.00",
                "shop_settle_rate": "0.00",
                "brand_id": "2",
                "site_type": "-1",
                "title": "苹果(Apple)iPhone 6 Plus (A1524)移动联通电信4G手机 金色 16G",
                "title_color": "",
                "simple_desc": "",
                "model": "iPhone 6 Plus",
                "place_origin": "0",
                "inventory": "785",
                "inventory_unit": "步",
                "images": "https://dev.shopxo.vip/static/upload/images/goods/2019/01/14/1547451274847894.jpg",
                "original_price": "6000.00-7600.00",
                "min_original_price": "6000.00",
                "max_original_price": "7600.00",
                "price": "4500.00-6800.00",
                "min_price": "4500.00",
                "max_price": "6800.00",
                "give_integral": "30",
                "buy_min_number": "1",
                "buy_max_number": "0",
                "is_deduction_inventory": "1",
                "is_shelves": "1",
                "is_home_recommended": "1",
                "content_web": "


", "photo_count": "2", "sales_count": "43", "access_count": "2134", "video": "https://dev.shopxo.vip/static/upload/video/goods/2019/01/14/1547458876723311.mp4", "is_exist_many_spec": "1", "spec_base": "", "seo_title": "", "seo_keywords": "", "seo_desc": "", "is_delete_time": "0", "add_time": "2019-01-14 15:40:24", "upd_time": "2021-08-26 15:31:12", "zycg_cate": "0", "zycg_brand": "0", "zycg_categoryname": null, "zycg_brandname": null, "price_container": { "price": "4500.00-6800.00", "min_price": "4500.00", "max_price": "6800.00", "original_price": "6000.00-7600.00", "min_original_price": "6000.00", "max_original_price": "7600.00" }, "goods_url": "https://dev.shopxo.vip/goods/index/id/2.html", "images_old": "/static/upload/images/goods/2019/01/14/1547451274847894.jpg", "video_old": "/static/upload/video/goods/2019/01/14/1547458876723311.mp4", "place_origin_name": null, "brand_name": "佳洁士", "show_field_original_price_text": "原价", "show_field_price_text": "价格", "plugins_view_panel_data": [], "plugins_view_icon_data": [] } ] } }

错误时返回

{
    "msg": "error",
    "code": -1,
    "data": []
}

返回参数说明 -> data

参数名 是否必须 类型 描述
page_total int 分页总数
total int 数据总数
data array 数据列表

备注

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

0 人点赞过