[TOC=2]
## 門店列表
~~~[api]
get:/store/list
int:current_page=1#當前頁
int:page_number=10#頁碼
<<<
success
{
"code": 0,
"data": {
"list": [
{
"id": 3,
"title": "冊數",//門店名
"address": "基地撒嬌的反饋",//門店詳細地址
"county_id": "130303000000",//區id
"name": "重算",//店長名
"phone": "13551233333",//店長手機號
"status": true,//門店狀態 true 啟用 fasle 禁用
"service_id": null,// 服務項目id
"service_item": null,//服務項目名
"extra": null,//其他信息
"last_login_time": "2018-04-28 15:16:45",//最近登錄時間
"create_time": "2018-04-28 15:16:45",//創建時間
"province_name": "河北省",//省名
"city_name": "秦皇島市",//市名
"province_id": 13,//省id
"city_id": "130300000000",//市id
"county_name": "山海關區"//區名
}
],
"current_page": 1,
"page_number": 10,
"total": 1
}
}
<<<
error
~~~
## 添加修改
~~~[api]
post:/store/saveData
int:id=1#id
*string:title=""#門店名
*string:name=""#店長姓名
*string:address=""#詳細地址
*string:phone=15181474781#店長手機號
*int:county_id=1#所在區域id
int:service_id=1#服務項目id
<<<
success
<<<
error
~~~
## 門店搜索
~~~[api]
get:/store/search
*string:search=""#門店名
<<<
success
<<<
error
~~~
## 刪除
~~~[api]
post:/store/delete
*int:id=0#id
<<<
success
{
"code": 0,
"data": {
"id": 0
}
}
~~~
## 門店凍結
~~~[api]
post:/user/site
*int:id=1#門店列表的id
*boolean:status=false/true# true 啟用 false 禁用
<<<
success
<<<
error
~~~
## 修改查詢
~~~[api]
get:/store/edit
*int:id=1#門店id
<<<
success
{
"code": 0,
"data": {
"id": 2,
"title": "測試",
"address": "厚度殺毒",
"county_id": "150404000000",
"name": "激動死阿基",
"phone": "13551344444",
"status": true,
"service_id": null,
"service_item": null,
"extra": null,
"last_login_time": "2018-04-28 15:14:43",
"create_time": "2018-04-28 15:14:43",
"province_name": "內蒙古自治區",
"city_name": "赤峰市",
"province_id": 15,
"city_id": "150400000000",
"county_name": "松山區"
}
}
<<<
error
~~~