【通用】获取可预约的日期、时段信息
<h5>简要描述</h5>
<ul>
<li>获取可预约的日期、时段信息</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>https://dev-app-finclip.azurewebsites.net/app/user/booking/availableDates</code> </li>
</ul>
<h5>请求方式</h5>
<ul>
<li>post</li>
</ul>
<h5>Header</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">header</th>
<th style="text-align: left;">必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">Authorization</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>鉴权token</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
},
{
"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
}
],
"date": "2024-04-28"
},
{
"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
},
{
"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
}
],
"date": "2024-04-29"
}
]
}
</code></pre>
<h5>失败返回示例</h5>
<pre><code>{
"code": 1001,
"message": "登录失效~"
}
</code></pre>