【星巴克】店铺
<h2>店铺、商品</h2>
<h3>获取店铺</h3>
<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;">identification</td>
<td style="text-align: left;">String</td>
<td>access_token</td>
</tr>
</tbody>
</table>
<h4>获取全部门店</h4>
<ul>
<li>获取全部的星巴克门店</li>
</ul>
<p><code>GET:</code> <a href="https://v3.qiangrenwl.com/v3.0/starbucks/shop/all">https://v3.qiangrenwl.com/v3.0/starbucks/shop/all</a></p>
<blockquote>
<p>参数:请求头携带认证字段</p>
</blockquote>
<ul>
<li>请求示例</li>
</ul>
<pre><code class="language-shell">https://sandbox-v3.qiangrenwl.com/v3.0/starbucks/shop/all</code></pre>
<ul>
<li>返回值示例</li>
</ul>
<pre><code class="language-json">{
"msg": "操作成功",
"code": 200,
"data": [
{
"end_working_time": "21:30", // 结束营业时间
"area": null,
"address": "浙江省海宁市长安镇农发区启潮路199号",
"lng": "120.383884",
"distance": null, // 距离
"city": "嘉兴市",
"cover": "",
"province": "浙江省嘉兴市",
"pretime": "1-4",
"intro": "",
"name": "浙江奥特莱斯店",
"tel": "",
"detail": null,
"id": "1137",
"start_working_time": "09:30",// 开始营业时间
"postal_code": "310000",
"lat": "30.345662"
},
....
]
}</code></pre>
<h4>获取附近店铺</h4>
<ul>
<li>获取以中心点按距离由近到远的店铺</li>
</ul>
<p><code>GET:</code> <a href="https://v3.qiangrenwl.com/v3.0/starbucks/shop/nearby">https://v3.qiangrenwl.com/v3.0/starbucks/shop/nearby</a></p>
<ul>
<li>请求参数</li>
</ul>
<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;">lat</td>
<td style="text-align: left;">String</td>
<td>用户地理坐标纬度</td>
</tr>
<tr>
<td style="text-align: left;">lng</td>
<td style="text-align: left;">String</td>
<td>用户地理坐标经度</td>
</tr>
<tr>
<td style="text-align: left;">distance</td>
<td style="text-align: left;">double</td>
<td>距离中心点距离</td>
</tr>
<tr>
<td style="text-align: left;">pageNum</td>
<td style="text-align: left;">int</td>
<td>分页数</td>
</tr>
<tr>
<td style="text-align: left;">pageSize</td>
<td style="text-align: left;">int</td>
<td>单页查询的数量</td>
</tr>
</tbody>
</table>
<ul>
<li>请求示例</li>
</ul>
<pre><code class="language-shell"> https://sandbox-v3.qiangrenwl.com/v3.0/starbucks/shop/nearby?lng=102.659213&lat=25.029223&distance=10&pageNum=1&pageSize=1</code></pre>
<ul>
<li>返回值示例</li>
</ul>
<pre><code class="language-json">{
"msg": "操作成功",
"code": 200,
"data": [
"end_working_time": "21:00", // 结束营业时间
"area": null,
"address": "云南省昆明市西山区马街街道积善路36号昆明融创文旅城步行商业街D10幢1层D10-1-1a单元",
"lng": "102.650628",
"distance": "1.86597", // 距离
"city": "昆明市",
"cover": "",
"province": "云南省昆明市",
"pretime": "1-4", // 预计准备时间(参考)
"intro": "",
"name": "昆明融创文旅城店",
"tel": "",
"detail": null,
"id": "66486",
"start_working_time": "10:00", // 开始营业时间
"postal_code": "650000",
"lat": "25.014354"
]
}</code></pre>
<h4>获取店铺详情</h4>
<ul>
<li>获取店铺详情</li>
</ul>
<p><code>GET:</code> <a href="https://v3.qiangrenwl.com/v3.0/starbucks/shop/{shopId">https://v3.qiangrenwl.com/v3.0/starbucks/shop/{shopId</a>}</p>
<ul>
<li>
<p>请求参数 路由参数 - shopId 门店id</p>
</li>
<li>请求示例</li>
</ul>
<pre><code class="language-shell"> https://sandbox-v3.qiangrenwl.com/v3.0/starbucks/shop/60935</code></pre>
<ul>
<li>返回值示例</li>
</ul>
<pre><code class="language-json">{
"msg": "操作成功",
"code": 200,
"data": {
"end_working_time": "22:20",
"area": null,
"address": "安徽省安庆市迎江区菱湖南路1号",
"lng": "117.077207",
"distance": null,
"city": "安庆市",
"cover": "",
"province": "安徽省安庆市",
"isBusiness": true, // 是否营业中
"pretime": "2-5",
"intro": "",
"name": "安庆吾悦广场店",
"tel": "",
"detail": null,
"id": "60935",
"start_working_time": "08:00",
"postal_code": "246000",
"lat": "30.514748"
}
}</code></pre>