ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[TOC] ## 门店列表 ~~~[api] post:/shop/list string:key#排序字段名 如 id, name string:order#排序规则 *int:page#页码 *int:limit#每页数量 string:shop_name#名字筛选 int:type#类型筛选 int:state#状态筛选 array:region_id#区域id筛选, <<< success { "code": 0, "info": "成功", "data": [{ "id": 1, "shop_name": "222", "region_id": 1, "title": "", "address": "", "phone": "", "state": 1, "allocation": 0, "type": "门店", "user_id": 1000, "region_title": "西安2", "region_state": 1, "counter_count": 2 }, { "id": 2, "shop_name": "444", "region_id": 1, "title": "", "address": "", "phone": "", "state": 1, "allocation": 0, "type": "仓库", "user_id": 1000, "region_title": "西安2", "region_state": 1, "counter_count": 0 }, { "id": 3, "shop_name": "333", "region_id": 2, "title": "", "address": "", "phone": "", "state": 1, "allocation": 0, "type": "部门", "user_id": 1000, "region_title": "渭南", "region_state": 1, "counter_count": 0 }] } <<< error ~~~ ## 门店类型 ~~~[api] post:/shop/type <<< success { "code": 0, "info": "成功", "data": [{ "id": 0, "title": "仓库" }, { "id": 1, "title": "门店" }, { "id": 2, "title": "部门" }, { "id": 3, "title": "分销" }] } <<< error ~~~ ## 可用门店数量 ~~~[api] post:/shop/overcount <<< success { "code": 0, "info": "成功", "data": 6 } <<< error ~~~ ## 新建门店 ~~~[api] post:/shop/add *string:shop_name#店铺名称 *region_id#区域id *type#店铺类型id phone#电话 address#地址 <<< success { "code": 0, "info": "成功", "data": { "shop_name": "宝鸡手机通讯", "region_id": "2", "type": "门店", "phone": "12313123123", "address": "xxxxxx", "id": "4" } } <<< error ~~~ ## 编辑门店 ~~~[api] post:/shop/edit *int:id#id *string:shop_name#店铺名称 *region_id#区域id *type#店铺类型id phone#电话 address#地址 *state#状态 <<< success { "code": 0, "info": "成功", "data": { "shop_name": "宝鸡手机通讯", "region_id": "2", "type": "门店", "phone": "12313123123", "address": "xxxxxx", "id": "4" } } <<< error ~~~ ## 门店详情 ~~~[api] post:/shop/get *string:id=默认值#说明文字 <<< success { "code": 0, "info": "成功", "data": [{ "id": 1, "shop_name": "宝鸡手机通讯3", "region_id": 2, "title": "", "address": "xxxxxx", "phone": "12313123123", "state": 1, "allocation": 0, "type": "门店", "user_id": 1000, "region_title": "渭南", "region_state": 1 }] } <<< error ~~~ ## 柜组列表 ~~~[api] post:/counter/list *string:id=默认值#门店id string:key#排序字段名 如 id, name string:order#排序规则 *int:page#页码 *int:limit#每页数量 string:counter_name#名字筛选 int:state#状态筛选 <<< success { "code": 0, "info": "成功", "data": [{ "id": 1, "counter_name": "诺基亚", "shop_id": 1, "state": 1, "user_id": 1000 }, { "id": 2, "counter_name": "333334", "shop_id": 1, "state": 1, "user_id": 1000 }] } <<< error ~~~ ## 新建柜组 ~~~[api] post:/counter/add *string:shop_id=默认值#店铺id counter_name#柜组名称 <<< success { "code": 0, "info": "成功", "data": { "counter_name": "宝鸡2", "shop_id": "1", "id": "4" } } <<< error ~~~ ## 编辑柜组 ~~~[api] post:/counter/edit *string:id=默认值#柜组id counter_name#名称 state#状态 <<< success { "code": 0, "info": "成功", "data": { "counter_name": "宝鸡2", "shop_id": "1", "id": "4" } } <<< error ~~~