多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
[TOC] #地址列表 +++ get:{url}index.php/Home/Appraise *int:page#页码 <<< success { "code": "200", "msg": "success", "data": [ { "id": "11", "address": "home", "name": "尚轩小区", //小区名 "is_default": "1", //是否默认,1 默认 0 非默认 "certify": "1" //是否认证,1 认证 0 未认证 }, { "id": "12", "address": "home", "name": null, "is_default": "0", "certify": "0" } ] } +++ #添加地址 +++ get:{url}index.php/Home/Address/store *address#地址 *lat#经度 *lng#纬度 int:village_id#小区id number#户号 householder#户主 mobile#电话 <<< success { "code": "200", "msg": "success", "data": { "id": "3" } } <<< error { "code": "500", "msg": "填写内容不匹配", "data": [] } +++ #更新地址 +++ get:{url}index.php/Home/Address/update *id#地址id *address#地址 *lat#经度 *lng#纬度 <<< success { "code": "200", "msg": "success", "data": [] } <<< error { "code": "500", "msg": 错误信息, "data": [] } +++ #删除地址 +++ get:{url}index.php/Home/Address/destroy *id#地址id <<< success { "code": "200", "msg": "success", "data": [] } <<< error { "code": "500", "msg": 错误信息, "data": [] } +++ #检查小区是否合作 +++ get:{url}index.php/Home/Address/checkVillage *name#小区名 <<< success { "code": "200", "msg": "success", "data": { "id": "1" //小区id } } <<< error { "code": "500", "msg": "not find", "data": [] } +++ #申请合作 +++ post:{url}index.php/Home/Address/apply *name#小区名 *address#地址 *province_id#省id *city_id#市id *area_id#区id <<< success { "code": "200", "msg": "success", "data": [] } <<< error { "code": "500", "msg": 错误信息, "data": [] } +++ #已申请人数 +++ get:{url}index.php/Home/Address/applyNum *name#小区名 <<< success { "code": "200", "msg": "success", "data": { "count": "3" } } <<< error { "code": "500", "msg": 错误信息, "data": [] } +++ #设为默认 +++ get:{url}index.php/Home/Address/setDefault *id#地址id <<< success { "code": "200", "msg": "success", "data": [] } <<< { "code": "500", "msg": "id error", "data": [] } +++ #认证 +++ get:{url}index.php/Home/Address/authenticate *int:id#地址id *int:village_id#小区id *number#户号 *householder#户主 *mobile#电话 <<< success { "code": "200", "msg": "success", "data": [] } <<< error { "code": "500", "msg": "填写内容不匹配", "data": [] } +++