飞盈掌柜

飞盈掌柜对外api接口


地区列表

<h5>简要描述</h5> <ul> <li>无</li> </ul> <h5>请求URL</h5> <ul> <li><code>{{host}}/area/list</code> </li> </ul> <h5>请求方式</h5> <ul> <li>get</li> </ul> <h5>请求Query参数</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">示例值</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">pid</td> <td style="text-align: left;">1</td> <td>是</td> <td>string</td> <td>地址pid 顶级传入1</td> </tr> </tbody> </table> <h5>成功返回示例</h5> <pre><code>{ "code": 200, "msg": "操作成功", "time": 1716969788, "data": [ { "id": 11, "pid": 1, "name": "北京市", "level": 1, "zip_code": "110000000000" }, { "id": 12, "pid": 1, "name": "天津市", "level": 1, "zip_code": "120000000000" }, { "id": 13, "pid": 1, "name": "河北省", "level": 1, "zip_code": "130000000000" }, { "id": 14, "pid": 1, "name": "山西省", "level": 1, "zip_code": "140000000000" }, { "id": 15, "pid": 1, "name": "内蒙古自治区", "level": 1, "zip_code": "150000000000" }, { "id": 21, "pid": 1, "name": "辽宁省", "level": 1, "zip_code": "210000000000" }, { "id": 22, "pid": 1, "name": "吉林省", "level": 1, "zip_code": "220000000000" }, { "id": 23, "pid": 1, "name": "黑龙江省", "level": 1, "zip_code": "230000000000" }, { "id": 31, "pid": 1, "name": "上海市", "level": 1, "zip_code": "310000000000" }, { "id": 32, "pid": 1, "name": "江苏省", "level": 1, "zip_code": "320000000000" }, { "id": 33, "pid": 1, "name": "浙江省", "level": 1, "zip_code": "330000000000" }, { "id": 34, "pid": 1, "name": "安徽省", "level": 1, "zip_code": "340000000000" }, { "id": 35, "pid": 1, "name": "福建省", "level": 1, "zip_code": "350000000000" }, { "id": 36, "pid": 1, "name": "江西省", "level": 1, "zip_code": "360000000000" }, { "id": 37, "pid": 1, "name": "山东省", "level": 1, "zip_code": "370000000000" }, { "id": 41, "pid": 1, "name": "河南省", "level": 1, "zip_code": "410000000000" }, { "id": 42, "pid": 1, "name": "湖北省", "level": 1, "zip_code": "420000000000" }, { "id": 43, "pid": 1, "name": "湖南省", "level": 1, "zip_code": "430000000000" }, { "id": 44, "pid": 1, "name": "广东省", "level": 1, "zip_code": "440000000000" }, { "id": 45, "pid": 1, "name": "广西壮族自治区", "level": 1, "zip_code": "450000000000" }, { "id": 46, "pid": 1, "name": "海南省", "level": 1, "zip_code": "460000000000" }, { "id": 50, "pid": 1, "name": "重庆市", "level": 1, "zip_code": "500000000000" }, { "id": 51, "pid": 1, "name": "四川省", "level": 1, "zip_code": "510000000000" }, { "id": 52, "pid": 1, "name": "贵州省", "level": 1, "zip_code": "520000000000" }, { "id": 53, "pid": 1, "name": "云南省", "level": 1, "zip_code": "530000000000" }, { "id": 54, "pid": 1, "name": "西藏自治区", "level": 1, "zip_code": "540000000000" }, { "id": 61, "pid": 1, "name": "陕西省", "level": 1, "zip_code": "610000000000" }, { "id": 62, "pid": 1, "name": "甘肃省", "level": 1, "zip_code": "620000000000" }, { "id": 63, "pid": 1, "name": "青海省", "level": 1, "zip_code": "630000000000" }, { "id": 64, "pid": 1, "name": "宁夏回族自治区", "level": 1, "zip_code": "640000000000" }, { "id": 65, "pid": 1, "name": "新疆维吾尔自治区", "level": 1, "zip_code": "650000000000" }, { "id": 71, "pid": 1, "name": "台湾省", "level": 1, "zip_code": "710000000000" }, { "id": 81, "pid": 1, "name": "香港特别行政区", "level": 1, "zip_code": "810000000000" }, { "id": 82, "pid": 1, "name": "澳门特别行政区", "level": 1, "zip_code": "820000000000" }, { "id": 91, "pid": 1, "name": "国外", "level": 1, "zip_code": "0" } ] } </code></pre> <h5>成功返回示例的参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">code</td> <td style="text-align: left;">string</td> <td>无</td> </tr> <tr> <td style="text-align: left;">msg</td> <td style="text-align: left;">string</td> <td>无</td> </tr> <tr> <td style="text-align: left;">time</td> <td style="text-align: left;">string</td> <td>无</td> </tr> <tr> <td style="text-align: left;">data</td> <td style="text-align: left;">array</td> <td>无</td> </tr> <tr> <td style="text-align: left;">id</td> <td style="text-align: left;">string</td> <td>配送订单需传入地区id</td> </tr> <tr> <td style="text-align: left;">pid</td> <td style="text-align: left;">string</td> <td>该地区所属父级id</td> </tr> <tr> <td style="text-align: left;">name</td> <td style="text-align: left;">string</td> <td>地区名称</td> </tr> <tr> <td style="text-align: left;">level</td> <td style="text-align: left;">string</td> <td>地区等级</td> </tr> <tr> <td style="text-align: left;">zip_code</td> <td style="text-align: left;">string</td> <td>地区编码</td> </tr> </tbody> </table>

页面列表

ITEM_HTML