公众号接口

公众号接口


*风险地区

<h2>行程报备-风险地区</h2> <p><strong>简要描述:</strong> </p> <ul> <li>查询风险地区</li> </ul> <p><strong>请求URL:</strong> <code>/focus/district</code></p> <p><strong>请求方式:</strong></p> <ul> <li>GET</li> </ul> <p><strong>参数:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">focusLevel</td> <td style="text-align: left;">否</td> <td style="text-align: left;">string</td> <td>风险等级 2: 中 3:高,不传查所有</td> </tr> </tbody> </table> <p><strong>请求示例</strong></p> <pre><code>/focus/district?focusLevel=2 </code></pre> <p><strong>返回参数说明</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">id</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>id</td> </tr> <tr> <td style="text-align: left;">label</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>名称</td> </tr> <tr> <td style="text-align: left;">level</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>当前层级 province:省 city:市 district:区</td> </tr> <tr> <td style="text-align: left;">children</td> <td style="text-align: left;">否</td> <td style="text-align: left;">list</td> <td>子集</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>{ "msg": "获取风险地区列表成功!", "code": 0, "data": { "children": [ { "children": [ { "children": [ { "id": "110101", "label": "东城区", "level": "3" }, { "id": "110102", "label": "西城区", "level": "3" }, { "id": "110105", "label": "朝阳区", "level": "3" }, { "id": "110106", "label": "丰台区", "level": "3" }, { "id": "110107", "label": "石景山区", "level": "3" }, { "id": "110108", "label": "海淀区", "level": "3" }, { "id": "110109", "label": "门头沟区", "level": "3" }, { "id": "110111", "label": "房山区", "level": "3" }, { "id": "110115", "label": "大兴区", "level": "3" } ], "id": "110100", "label": "北京城区", "level": "2" } ], "id": "110000", "label": "北京市", "level": "1" }, { "children": [ { "children": [ { "id": "440303", "label": "罗湖区", "level": "3" }, { "id": "440304", "label": "福田区", "level": "3" } ], "id": "440300", "label": "深圳市", "level": "2" } ], "id": "440000", "label": "广东省", "level": "1" } ] } } </code></pre> <p><strong>备注</strong> 1.点击查看中/高风险地区: 1.1focusLevel=3查询高风险 1.2focusLevel=2查询中风险 <img src="https://www.showdoc.cc/server/api/common/visitfile/sign/1fd96b56357c0911ce436a2dccfc95a3?showdoc=.jpg" alt="" /></p> <p>2.如下地区使用,不传focusLevel查询所有,显示第一层省 <img src="https://www.showdoc.cc/server/api/common/visitfile/sign/9b2f6b830d98d2a90818e42911d1706b?showdoc=.jpg" alt="" /> <img src="https://www.showdoc.cc/server/api/common/visitfile/sign/b0d072cd2c54cfc747aca54dff52b778?showdoc=.jpg" alt="" /></p> <h2>3.已选择的省市区: 使用接口返回的如下两个字段和前端省市区控件匹配: &quot;toFocusDistrictArray&quot;: [&quot;440304&quot;,&quot;440303&quot;,&quot;110102&quot;], &quot;contactFocusDistrictArray&quot;: [&quot;440304&quot;,&quot;440303&quot;,&quot;110102&quot;] <img src="https://www.showdoc.cc/server/api/common/visitfile/sign/4bf809082675fe87b5f398a0c02cb17d?showdoc=.jpg" alt="" /></h2>

页面列表

ITEM_HTML