多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
[TOC] ## 列表 ~~~[api] get:/cooperation_sale <<< success { "code": 0, "data": { "data": [ { "id": 1, "name": "王伟",//销售姓名 "phone": "15181474781",//销售电话 "status": 0,//销售状态 0 正常 1 冻结 "create_time": "2017-12-15 09:33:30",//创建时间 "title": "青羊区分店"//所在门店名 } ], "currentPage": 1,//当前页 "pageNumber": 10,//页码 "count": 1 } } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 列表分页 ~~~[api] get:/cooperation_sale/pag *int:currentPage=1#当前页 *int:pageNumber=10#页码 <<< success { "code": 0, "data": { "data": [ { "id": 1, "name": "王伟", "phone": "15181474781", "status": 0, "create_time": "2017-12-15 09:33:30", "title": "青羊区分店" } ] } } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 搜索 ~~~[api] get:/cooperation_sale/search *string:search=搜索内容#销售姓名 | 销售手机号 <<< success { "code": 0, "data": { "data": [ { "id": 1, "name": "王伟", "phone": "13333333332", "status": 0, "create_time": "2017-12-15 16:28:35", "title": "青羊区分店" } ] } } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 门店下的销售列表 ~~~[api] get:/cooperation_sale/list *int:id=1#门店 id <<< success { "code": 0, "data": { "data": [ { "id": 1, "name": "王伟",//销售姓名 "phone": "15181474781",//销售电话 "status": 0,//销售状态 0 正常 1 冻结 "create_time": "2017-12-15 09:33:30",//创建时间 "title": "青羊区分店",//所在门店名 "total": 28,//总佣金 "available": 28,//可提佣金 "used": 0//已提佣金 } ], "currentPage": 1,//当前页 "pageNumber": 10,//页码 "count": 1 } } <<< error { "code": -1, "msg": "参数错误!" } ~~~ ## 门店列表分页 ~~~[api] get:/cooperation_sale/listPag *int:id=1#门店 id *int:currentPage=1#当前页 *int:pageNumber=10#页码 <<< success { "code": 0, "data": { "data": [ { "id": 1, "name": "王伟", "phone": "15181474781", "status": 0, "create_time": "2017-12-15 09:33:30", "title": "青羊区分店", "total": 28,//总佣金 "available": 28,//可提佣金 "used": 0//已提佣金 } ] } } <<< error { "code": -1, "msg": "参数错误!" } ~~~