分页获取店铺列表

通过本接口,查询店铺列表,可以改变排序规则。也可以按照关键词搜索。

默认排序:按照店铺入住时间倒序排序

其他排序:按照排序规则倒序排序

所在controller:StoreController

请求方式:GET或POST

URL:/{version}/store/page

入参列表


参数名 类型 必填 默认值 备注
1 pageSize Integer 10 一页的大小
2 pageNo Integer 1 当前页码
3 sort String
排序规则:可选值:allSales(销售量)、collectionCount(收藏数)
4 sortMode String
DESC 排序方式:可选值ASC(升序)、DESC(降序)
5 k String
搜索店铺的关键词

返回值列表


参数名 类型 说明 备注
1 status String 状态码,成功返回200,失败返回500
2 msg String 提示信息
3 data. array.storeid Long 店铺id 如果没有值则data里为空
4 data. array.logo String 店铺logo路径
5 data. array.name String 店铺名称
6 data. array. industry String 主营产品
7 data. array.countCollection String 收藏数
8 data. array. productCount Integer 商品数
9 data. array.productScore float 产品评分
10 data. array.logisticsScore float 物流评分
11 data. array.aftersaleScore float 售后评分
12 data. array. allSales Integer 总销售量

返回值示例:

{
    "status": "200",
    "message": "分页查询店铺列表成功",
    "data": [{
        "createDate": "2017-11-13 18:35:49",
        "updateDate": "2017-11-15 11:18:55",
        "storeId": 1817,
        "headPic": "/shop_init/store_face_01.png",
        "logo": "/01/91/69/22811f04e1ba4fb8a15e03a6ea2ef384.jpg",
        "banner": "/07/62/65/47d491dc79fd494fa02dadc23db4e54b.png",
        "name": "小蚁(YI)官方旗舰店",
        "productCount": 10,
        "isOpen": "1",
        "settlementPeriod": "40",
        "provinceId": 2,
        "provinceName": "北京",
        "cityId": 52,
        "cityName": "北京",
        "districtId": 512,
        "districtName": "昌平区",
        "detailedAddress": "北京昌平区回龙观南大街",
        "storeTel": "024-652876548",
        "storeQq": "88888888",
        "storeWechat": "xy-8765401",
        "seoTitle": "智能摄像机,行车记录仪_小蚁(YI)官方旗舰店",
        "seoKeyword": "智能摄像机,行车记录仪_北京_小蚁(YI)官方旗舰店",
        "seoDescribe": "小蚁科技是一家年轻的互联网硬件企业,专注探索智能、可穿戴、移动化的新型视频类智能电子产>品开发,为移动互联网时代提供让用户尖叫的视频产品和服务。",
        "industry": "微单相机,运动相机,智能摄像机,行车记录仪",
        "storeType": "1",
        "levelId": 1,
        "industryId": 865,
        "commission": 0,
        "allSales": 0,
        "productScore": "0",
        "logisticsScore": "0",
        "afterSaleScore": "0",
        "countCollection": 3
    }, {
        "createDate": "2017-11-13 17:05:42",
        "updateDate": "2018-04-24 15:31:40",
        "storeId": 1814,
        "headPic": "/shop_init/store_face_01.png",
        "logo": "/09/06/95/ba2017c094e546be91584ac6c4f14cf3.jpg",
        "banner": "/08/93/79/dafea1dd8cc84decb2ad70bd2601237f.jpg",
        "name": "美的官方旗舰店",
        "productCount": 18,
        "isOpen": "1",
        "settlementPeriod": "40",
        "provinceId": 2,
        "provinceName": "北京",
        "cityId": 52,
        "cityName": "北京",
        "districtId": 502,
        "districtName": "海淀区",
        "detailedAddress": "知春路",
        "storeTel": "0355-6612456",
        "storeQq": "3330105677",
        "storeWechat": "15134235423",
        "seoTitle": "家电产品_北京美的集团",
        "seoKeyword": "家电产品_北京_美的",
        "seoDescribe": "美的是一家知名的消费电器、暖通空调、机器人与自动化系统、智能供应链科技集团,包括以厨房家电、冰箱、洗衣机、及各类小家电的消费电器业务;以家用空调、中央空调、供暖及通风系统的暖通空调业务。",
        "industry": "家用电器",
        "storeType": "2",
        "levelId": 2,
        "industryId": 863,
        "commission": 0,
        "allSales": 0,
        "productScore": "0",
        "logisticsScore": "0",
        "afterSaleScore": "0",
        "countCollection": 2
    }, {
        "createDate": "2017-11-13 17:02:28",
        "updateDate": "2019-10-22 17:29:00",
        "storeId": 1813,
        "headPic": "/shop_init/store_face_01.png",
        "logo": "/05/64/88/d2e10160722f4749b66fcc4e751d0813.jpg",
        "banner": "/02/99/90/5169ca3e2d6b4676a802957e65224bab.png",
        "name": "壳牌思程自营店",
        "productCount": 25,
        "isOpen": "1",
        "settlementPeriod": "40",
        "provinceId": 2,
        "provinceName": "北京",
        "cityId": 52,
        "cityName": "北京",
        "districtId": 512,
        "districtName": "昌平区",
        "detailedAddress": "北京昌平区回龙观南大街",
        "storeTel": "020-62196548",
        "storeQq": "666666666",
        "storeWechat": "kp-32876895",
        "seoTitle": "机油,挖掘机_壳牌思程自营店",
        "seoKeyword": "机油,挖掘机_北京_壳牌",
        "seoDescribe": "皇家荷兰壳牌公司集团是世界著名的大型跨国石油公司,成立于1907年,一直由皇家荷兰石油公司占60%股份,壳牌运输和贸易公司(英国)占40%的股份。两家母公司均为上市公司,皇家荷兰石油公司的股票在阿姆斯特丹、伦敦、纽约、苏黎世等9个城市挂牌上市,壳牌运输和贸易公司在伦敦、纽约、巴黎等5个城市挂牌上市。 该公司集团主要从事石油上下游及化工业务,公司集团总部分设在荷兰海牙和英国伦敦。2014年世界500强排行榜中壳牌石油荣登榜首。",
        "industry": "机油,挖掘机",
        "storeType": "1",
        "levelId": 1,
        "industryId": 862,
        "commission": 0,
        "allSales": 0,
        "productScore": "0",
        "logisticsScore": "0",
        "afterSaleScore": "0",
        "countCollection": 4
    }, {
        "createDate": "2017-07-25 03:45:14",
        "updateDate": "2019-11-06 15:02:18",
        "storeId": 805,
        "headPic": "/03/57/24/c6d5166b4a1542e6b8af0a6d7f015537.png",
        "logo": "/shop_init/store_logo.png",
        "banner": "/08/96/33/09bc3ce31b77458babad9b4673e9d428.png",
        "name": "北京汇鑫科技有限公司",
        "productCount": 116,
        "isOpen": "1",
        "settlementPeriod": "40",
        "countryName": "中国",
        "provinceId": 35,
        "provinceName": "台湾",
        "cityId": 397,
        "cityName": "台湾",
        "districtId": 3399,
        "districtName": "花莲县",
        "detailedAddress": "北京昌平回龙观西大街",
        "storeTel": "15135342363",
        "storeQq": "3330105499",
        "storeWechat": "1234",
        "seoTitle": "121212",
        "seoKeyword": "1212",
        "seoDescribe": "电子产品",
        "industry": "电子产品",
        "storeType": "2",
        "levelId": 2,
        "industryId": 823,
        "commission": 10,
        "allSales": 0,
        "productScore": "0",
        "logisticsScore": "0",
        "afterSaleScore": "0",
        "countCollection": 4
    }, {
        "createDate": "2017-01-17 03:49:50",
        "updateDate": "2018-03-14 16:27:52",
        "storeId": 1,
        "headPic": "/03/32/08/2b921282b4f84a7bafa62e600bddce23.jpg",
        "logo": "/10/85/48/7bf9ab8e6b0b474da56ff23936f777fa.jpg",
        "banner": "/00/55/78/db40413dcc7443ce903ba0c6d47abebe.jpg",
        "name": "张加力专卖店",
        "productCount": 582,
        "isOpen": "1",
        "settlementPeriod": "1",
        "countryId": 1,
        "countryName": "1",
        "provinceId": 35,
        "provinceName": "台湾",
        "cityId": 397,
        "cityName": "台湾",
        "districtId": 3400,
        "districtName": "澎湖县",
        "detailedAddress": "请输入完整详细地址",
        "storeTel": "4008-000-000",
        "storeQq": "999999999",
        "storeWechat": "13388888888",
        "seoTitle": "seotitle_admin",
        "seoKeyword": "se",
        "seoDescribe": "1",
        "industry": "出售张加力 成品和半成品¥25 一只:D",
        "storeType": "2",
        "levelId": 2,
        "industryId": 823,
        "commission": 0,
        "allSales": 0,
        "productScore": "0",
        "logisticsScore": "0",
        "afterSaleScore": "0",
        "countCollection": 2
    }],
    "page": {
        "pageNo": 1,
        "pageSize": 10,
        "count": 5,
        "isFirstPage": true,
        "isLastPage": true
    }
}


获取店铺详细信息

通过本接口,查询店铺详细信息

所在controller:StoreController

请求方式:GET或POST

URL:/{version}/store/one/all

入参列表


参数名 类型 必填 默认值 备注
1 storeId Long 店铺id

返回值列表


参数名 类型 说明 备注
1 status String 状态码,成功返回200,失败返回500
2 msg String 提示信息
3 data. array.storeNavCount
店铺头部信息 整合了/{version}/store/nav/count接口
4 data. array. solrStore
店铺详细信息 店铺的所有基本信息

返回值示例:

{
    "status": "200",
    "message": "获取店铺总信息成功",
    "data": {
        "storeNavCount": {
            "storeArticleCount": 0,
            "productNewCount": 18,
            "collectionStoreCount": 4,
            "productAllCount": 58
        },
        "solrStore": {
            "createDate": "2017-07-25 03:45:14",
            "updateDate": "2019-11-14 10:11:02",
            "storeId": 805,
            "headPic": "/03/57/24/c6d5166b4a1542e6b8af0a6d7f015537.png",
            "logo": "/shop_init/store_logo.png",
            "banner": "/08/96/33/09bc3ce31b77458babad9b4673e9d428.png",
            "name": "北京汇鑫科技有限公司",
            "productCount": 118,
            "isOpen": "1",
            "settlementPeriod": "40",
            "countryName": "中国",
            "provinceId": 35,
            "provinceName": "台湾",
            "cityId": 397,
            "cityName": "台湾",
            "districtId": 3399,
            "districtName": "花莲县",
            "detailedAddress": "北京昌平回龙观西大街",
            "storeTel": "15135342363",
            "storeQq": "3330105499",
            "storeWechat": "1234",
            "seoTitle": "121212",
            "seoKeyword": "1212",
            "seoDescribe": "电子产品",
            "industry": "电子产品",
            "storeType": "2",
            "levelId": 2,
            "industryId": 823,
            "commission": 10,
            "allSales": 0,
            "productScore": "0",
            "logisticsScore": "0",
            "afterSaleScore": "0",
            "countCollection": 4
        }
    },
    "page": {}
}


获取店铺商品分类-V2版本

通过本接口,查询店铺分类信息,和V1版本不同的是,这里查询的结果有层级关系,v1版本没有层级关系。没有层级关系对于前端很难使用。

所在controller:StoreController

请求方式:GET或POST

URL:/{version}/store/category/list

调用方式:version要写v2

入参列表


参数名 类型 必填 默认值 备注
1 storeId Long 店铺id

返回值列表


参数名 类型 说明 备注
1 status String 状态码,成功返回200,失败返回500
2 msg String 提示信息
3 data. array List 该店铺的商品分类信息 如果该店铺没有商品分类,那么data里是空的

返回值示例:

{
    "status": "200",
    "message": "店铺商品分类获取成功",
    "data": [{
        "id": 781,
        "parentIds": "0,",
        "name": "汽车用户",
        "storeCategoryId": 781,
        "storeId": 805,
        "level": 1,
        "subsetStoreCategory": [{
            "parentIds": "0,781,",
            "name": "油漆",
            "storeId": 805,
            "level": 2,
            "parentId": 781
        }, {
            "parentIds": "0,781,",
            "name": "装饰",
            "storeId": 805,
            "level": 2,
            "parentId": 781
        }, {
            "parentIds": "0,781,",
            "name": "轮胎",
            "storeId": 805,
            "level": 2,
            "parentId": 781
        }],
        "parentId": 0
    }, {
        "id": 1257,
        "parentIds": "0,",
        "name": "电脑配件",
        "storeCategoryId": 1257,
        "storeId": 805,
        "level": 1,
        "subsetStoreCategory": [{
            "parentIds": "0,1257,",
            "name": "主板",
            "storeId": 805,
            "level": 2,
            "parentId": 1257
        }, {
            "parentIds": "0,1257,",
            "name": "硬盘",
            "storeId": 805,
            "level": 2,
            "parentId": 1257
        }, {
            "parentIds": "0,1257,",
            "name": "内存",
            "storeId": 805,
            "level": 2,
            "parentId": 1257
        }, {
            "parentIds": "0,1257,",
            "name": "CPU",
            "storeId": 805,
            "level": 2,
            "parentId": 1257
        }],
        "parentId": 0
    }],
    "page": {}
}