【用户端】获取某段日期内预约情况
<h5>简要描述</h5>
<ul>
<li>获取某段日期内预约情况</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>https://dev-app-finclip.azurewebsites.net/app/user/booking/getAppointmentStatus</code> </li>
</ul>
<h5>请求方式</h5>
<ul>
<li>post</li>
</ul>
<h5>Header</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;">Authorization</td>
<td style="text-align: left;">eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc1JlZnJlc2giOmZhbHNlLCJpZCI6NSwiY3JlYXRlVGltZSI6IjIwMjQtMDQtMTkgMDc6MDk6NTIiLCJ1cGRhdGVUaW1lIjoiMjAyNC0wNC0xOSAwNzowOTo1MiIsImVtYWlsIjoiIiwib3BlbklkIjoib0VNX1g1Y2pSSkdBVk96M3o1MDFTS3R2WFl4WSIsInN0YXR1cyI6MSwidXNlcklkIjoiTFY2QllRV01URFNPSVQiLCJuYW1lIjoiIiwiaWRDYXJkIjoiIiwiaWF0IjoxNzE0Mjg3ODA3LCJleHAiOjE3MTQzNzQyMDd9.3eDgYi5Uts_iQxhJadxY0iS5G0UvBMSjxmrfQclxSvI</td>
<td>是</td>
<td>string</td>
<td>鉴权token</td>
</tr>
</tbody>
</table>
<h5>请求参数示例</h5>
<pre><code>{
"startDate": "2024-04-28",
"endDate": "2024-04-28"
}
</code></pre>
<h5>json字段说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">字段名</th>
<th style="text-align: left;">必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">startDate</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>开始日期</td>
</tr>
<tr>
<td style="text-align: left;">endDate</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>结束日期</td>
</tr>
</tbody>
</table>
<h5>成功返回示例</h5>
<pre><code>{
"code": 1000,
"message": "success",
"data": [
{
"rule": {
"id": 1,
"createTime": "2024-04-19 14:24:24",
"updateTime": "2024-04-19 14:24:24",
"name": "A",
"description": "",
"date_start": "2024-04-01",
"date_end": "2025-04-30",
"week_day_applied": [
"0",
"1",
"2",
"3",
"4",
"5",
"6"
],
"active": 1,
"priority": 0
},
"slots": [
{
"id": 2,
"createTime": "2024-04-19 14:54:04",
"updateTime": "2024-04-19 14:54:16",
"booking_rule_id": 1,
"start_time_slot": 29,
"end_time_slot": 40,
"quota": 100,
"description": "",
"price": 0,
"ext_config": null,
"amount": 0,
"checkNumber": 0
},
{
"id": 1,
"createTime": "2024-04-19 14:24:34",
"updateTime": "2024-04-19 14:24:34",
"booking_rule_id": 1,
"start_time_slot": 3,
"end_time_slot": 22,
"quota": 100,
"description": "",
"price": 0,
"ext_config": null,
"amount": 0,
"checkNumber": 0
}
],
"date": "2024-04-28"
}
]
}
</code></pre>
<h5>失败返回示例</h5>
<pre><code>{
"code": 1001,
"message": "登录失效~"
}
</code></pre>
<h5>备注</h5>
<p>startDate必须早于endDate,当startDate和endDate一致时则查询那一天的预约情况</p>