多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
[TOC] ## 区域列表 ~~~[api] post:/region/list string:key#排序字段名 如 id, name string:order#排序规则 *int:page#页码 *int:limit#每页数量 string:title#名字筛选 int:state#状态筛选 <<< success { "code": 0, "info": "成功", "data": [{ "id": 1, "title": "西安2", "state": 1, "shop_count": 2 }, { "id": 2, "title": "渭南", "state": 1, "shop_count": 1 }, { "id": 3, "title": "宝鸡", "state": 1, "shop_count": 0 }] } <<< error ~~~ ## 新建区域 ~~~[api] post:/region/add *string:title=默认值#区域名称 <<< success { "code": 0, "info": "成功", "data": { "title": "西安2", "id": "1", "state": "1" } } <<< error { "code": 10001, "info": "名称已存在", "data": null } ~~~ ## 编辑区域 ~~~[api] post:/region/edit *int:id=默认值#区域id *string:title=默认值#名称 *int:state=1#状态 0=暂停 1=开启 <<< success { "code": 0, "info": "成功", "data": { "title": "西安2", "id": "1", "state": "1" } } <<< error { "code": 10001, "info": "名称已存在", "data": null } ~~~