#### 列表
~~~[api]
get:/index/stores/index
string:search#搜索關鍵詞
number:cateId#分類ID
number:type#門店類型,1=>B2C,2=>O2O,3=>O2O(支持預約配送)
number:p=1#當前頁數
number:ps=10#分頁大小
<<<
success
{
"code": 1,
"msg": "",
"time": "2018-06-12 10:22:43",
"data": [
{
"id": 14,
"dealer_id": 1,
"cate_id": 2,
"auditd_id": 1,
"type": 2,
"name": "門店14",
"thumb": "http://oss.dgyouduo.com/static/img/no-image.png",
"banner": [
"http://oss.dgyouduo.com/static/img/no-image-16x10.png"
],
"notice": "歡迎光臨,很高興為您服務",
"mobile": "18666868868",
"province": 100000,
"city": 110000,
"district": 111000,
"twon": 111100,
"address": "詳細地址",
"longitude": "112.000001",
"latitude": "30.000001",
"business_hours_start": "7",
"business_hours_end": "24",
"template_style": 1,
"delivery_scope": 1,
"delivery_setting": "",
"delivery_time": 0,
"delivery_goods_min_price": "0.00",
"delivery_price": "0.00",
"sort": 0,
"is_support_two": 0,
"is_support_express": 0,
"is_support_self_pickup": 0,
"is_support_delivery": 0,
"is_support_make_delivery": 0,
"is_self_delivery": 0,
"is_audit": 1,
"is_trash": 0,
"status": 1,
"created_at": "2018-06-11 16:47:59",
"updated_at": "2018-06-11 16:47:59",
"auditd_at": "2016-01-01 00:00:00",
"is_audit_text": "審核通過",
"status_text": "正常"
}
],
"_meta": {
"totalCount": 1,
"pageCount": 1,
"currentPage": 1,
"perPage": 10
}
}
~~~
#### 附近門店
> https://lbs.amap.com/api/yuntu/reference/cloudsearch/#t2 請參考門店模型
~~~[api]
get:/index/stores/mapAroundSearch
*string:center#經緯度,例:'113.761352,22.985013'
string:keyword#搜索關鍵詞,搜索范圍包含店名與地址。2. 支持關鍵字模糊檢索,即對建立【文本索引字段】對應列內容進行模糊檢索;如keywords=工商銀行,檢索返回已建立文本索引列值中包含“工商”或者“銀行”或者“工商銀行”關鍵字的POI結果集。3. 支持關鍵字“或”精準檢索,即對建立【文本索引字段】對應列內容進行多關鍵字檢索;如keywords=招商銀行|華夏銀行|工商銀行,檢索返回已建立索引列值中包含“招商銀行”或者“華夏銀行”或者“工商銀行”的POI結果集,不會返回檢索詞切分后,如僅包含“招商”或者“銀行”的POI集。4. 可賦值為空值,用空格表示空值;5. keywords= (空格)或者是關鍵字,將返回對應關鍵字的數據;6. 一次請求最多返回2000條數據。
int:radius=3000#查詢半徑,單位米,默認3000
string:filter#過濾條件 status:1+is_support_delivery:1
string:sortrule#排序規則_distance:1
*number:p=1#當前頁數
*number:ps=20#每頁的條數,最大為100,默認20
<<<
success
{
"code": 1,
"msg": "",
"time": "2018-08-09 14:59:22",
"data": {
"count": "1",
"info": "OK",
"infocode": "10000",
"status": 1,
"datas": [
{
"_id": "2",
"_location": "113.761352,22.985013",
"_name": "地圖商家",
"_address": "廣東省東莞市東城街道新莞悅大廈",
"store_id": 21,
"_createtime": "2018-08-09 14:38:34",
"_updatetime": "2018-08-09 14:38:34",
"_province": "廣東省",
"_city": "東莞市",
"_district": "",
"_distance": "0",
"_image": []
}
]
}
}
~~~
#### 詳情
~~~[api]
get:/index/stores/retrieve/id/:id
<<<
success
{
"code": 1,
"msg": "",
"time": "2018-06-28 07:51:51",
"data": {
"id": 1,
"dealer_id": 1,
"cate_id": 1,
"auditd_id": 1,
"type": 1,
"name": "門店1",
"thumb": "http://oss.dgyouduo.com/static/img/no-image.png",
"banner": [
"http://oss.dgyouduo.com/static/img/no-image-16x10.png"
],
"notice": "歡迎光臨,很高興為您服務",
"mobile": "18666868868",
"province": 100000,
"city": 110000,
"district": 111000,
"twon": 111100,
"address": "詳細地址",
"longitude": "112.000001",
"latitude": "30.000001",
"business_hours_start": "7",
"business_hours_end": "24",
"template_style": 2,
"delivery_scope": 1,
"delivery_setting": "",
"delivery_time": 0,
"delivery_goods_min_price": "0.00",
"delivery_price": "0.00",
"sort": 0,
"is_support_two": 0,
"is_support_express": 1,
"is_support_self_pickup": 0,
"is_support_delivery": 0,
"is_support_make_delivery": 0,
"is_self_delivery": 0,
"is_audit": 1,
"status": 1,
"created_at": "2018-06-10 23:47:31",
"updated_at": "2018-06-20 15:35:58",
"auditd_at": "2018-06-11 01:08:50",
"promotionOrderFullSubtract": {
"id": 1,
"dealer_id": 2,
"stores_id": 1,
"value": [],
"status": 1,
"created_at": "2016-01-01 00:00:00",
"updated_at": "2018-08-13 15:16:22",
"status_text": "正常"
},
"is_audit_text": "審核通過",
"status_text": "正常"
}
}
~~~
#### 分類
~~~[api]
get:/index/stores/category
*number:type#門店類型,1=>B2C門店,2=>O2O門店
number:parentId#父ID
<<<
success
{
"code": 1,
"msg": "",
"time": "2018-09-11 17:14:51",
"data": [
{
"id": 1,
"parent_id": 0,
"parent_id_path": "0_1",
"level": 1,
"type": 1,
"name": "B2C",
"thumb": "http://oss.dgyouduo.com/static/img/no-image.png",
"template_style": 2,
"delivery_scope": 1,
"delivery_setting": "",
"delivery_time": 0,
"sort": 0,
"is_support_two": 1,
"is_support_express": 1,
"is_support_self_pickup": 0,
"is_support_delivery": 0,
"is_support_make_delivery": 0,
"is_self_delivery": 0,
"status": 1,
"created_at": "2018-06-10 22:26:52",
"updated_at": "2018-06-20 15:39:07",
"status_text": "正常"
}
],
"_meta": {
"totalCount": 1,
"pageCount": 1,
"currentPage": 1,
"perPage": 1000
}
}
~~~
#### 商品
~~~[api]
get:/index/stores/goods/id/:id
string:orderBy#排序,''=>最新,view=>人氣,sale=>銷量,price=>價格
number:p=1#當前頁數
number:ps=10#分頁大小
<<<
success
{
"code": 1,
"msg": "",
"time": "2018-06-12 10:41:34",
"data": [
{
"id": 1,
"cate_id": 1,
"brands_id": 0,
"dealer_id": 1,
"stores_id": 1,
"express_id": 0,
"template_id": null,
"sn": "1234567890",
"name": "測試商品",
"weight": 0,
"volume": 0,
"thumb": "http://oss.dgyouduo.com/static/img/no-image.png",
"banner": [
"http://oss.dgyouduo.com/static/img/no-image-16x10.png"
],
"summary": "商品摘要",
"price": "10.00",
"market_price": "20.00",
"inventory": 100,
"view_count": 0,
"sale_count": 0,
"sort": 0,
"is_free_shipping": 0,
"is_hot": 0,
"is_new": 0,
"is_real": 1,
"is_sale": 1,
"is_trash": 0,
"status": 1,
"created_at": "2016-01-01 00:00:00",
"updated_at": "2016-01-01 00:00:00",
"saled_at": "2016-01-01 00:00:00",
"status_text": "正常"
}
],
"_meta": {
"totalCount": 1,
"pageCount": 1,
"currentPage": 1,
"perPage": 10
}
}
~~~
#### 輪播圖
~~~[api]
get:/index/stores/banner
<<<
success
{
"code": 1,
"msg": "",
"time": "2018-06-12 12:49:25",
"data": [
{
"image": "http://image.suning.cn/uimg/aps/material/152673480125402454.jpg",
"type": "goods",
"value": 1
},
{
"image": "http://image4.suning.cn/uimg/cms/img/152671545167872835.jpg",
"type": "article",
"value": 1
},
{
"image": "http://image4.suning.cn/uimg/cms/img/152671545167872835.jpg",
"type": "url",
"value": "http://www.baidu.com"
}
]
}
~~~
- 簡介
- 模型
- 模型規范
- 后臺用戶模型
- 商家用戶模型
- 會員用戶模型
- 配送員用戶模型
- 文章模型
- 門店模型
- 門店模型(高德地圖)
- 商品模型
- 模板商品模型
- 購物車模型
- 訂單模型
- 配送訂單模型
- 快遞模型
- 積分商品模型
- 促銷模型
- 平臺API
- 首頁
- 系統管理
- 賬戶管理
- 角色管理
- 權限管理
- 菜單管理
- 平臺管理
- 會員端設定
- 積分設定
- 接口管理
- 微信接口
- 短信接口
- 快遞接口
- 地圖接口
- 支付寶接口
- 文章管理
- 分類管理
- 文章列表
- 審核管理
- 商家管理
- 商家列表
- 角色管理
- 權限管理
- 菜單管理
- 申請管理
- 門店管理
- 分類管理
- 門店列表
- 審核管理
- 配送員管理
- 配送員列表
- 會員管理
- 會員列表
- 商品管理
- 分類管理
- 品牌管理
- 商品列表
- 參數管理
- 規格管理
- 訂單管理
- 訂單列表
- 快遞管理
- 快遞列表
- 促銷管理
- 紅包管理
- 積分管理
- 商品管理
- 訂單管理
- 財務管理
- 模板商品管理
- 分類管理
- 品牌管理
- 商品列表
- 參數管理
- 規格管理
- 商家API
- 首頁
- 系統管理
- 賬戶管理
- 角色管理
- 權限管理
- 門店管理
- 門店列表
- 商品管理
- 分類管理
- 品牌管理
- 商品列表
- 參數管理
- 規格管理
- 模板商品
- 訂單管理
- 訂單列表
- 售后管理
- 投訴管理
- 快遞管理
- 快遞列表
- 配送員管理
- 配送員列表
- 促銷管理
- 商品秒殺
- 訂單滿減
- 優惠券管理
- 財務管理
- 配送員API
- 首頁
- 工作狀態
- 訂單管理
- 消息中心
- 個人中心
- 文章
- 錢包
- 系統
- 會員API
- 首頁
- 商家
- 門店
- 商品
- 會員
- 收貨地址
- 購物車
- 訂單
- 訂單售后
- 訂單投訴
- 紅包
- 優惠券
- 積分
- 文章
- 公共API
- 阿里云對象存儲
- 微信公眾平臺
- 微信支付平臺
- 支付寶
- 凌凱短信
- 快遞鳥
- 接口返回碼
- 20180104溝通記錄
- 20180119溝通記錄
- 20180130溝通記錄
- 20180313溝通記錄