[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
~~~