資料格式 - OnlineReserve
===
### Description:
用於預約的自動鎖定
### 資料格式:
| key | type | value | description |
|:----------------- |:------- |:-------- |:----------------------------------------------------------------------------- |
| id | Int | 1 | id |
| onlineReservable | Boolean | true | 是否開放線上預約, 1:啟用 ,0:禁用 |
| periodUnit | Int | 0 | 0: 週 ; 1: 月 |
| day | Int | 4 | 1:週一, 2:週二,....7:週日 , 或者 月份:1~31號 (取決於periodUnit) |
| reserverAfterUnit | String | "2" | 參考單位`periodUnit`- 週/月 + release |
| autoLockEnable | Boolean | true | 是否啟用 |
| type | Int | 1 | 自動鎖定類型, 0: 每天 , 1: 每個診次之前 |
| deadLine | Time? | 08:30 | 鎖定時間,只有`type` = 1 才會使用這個時間 |
| deadLineLock | Int | 0 | 鎖定 0: 當天, 1: 隔天 的診次 |
| beforeConsult | String | "30分鐘" | 用於每個診次前多久鎖定診次預約,這個選項會是`type`= 1,"beforeClinic"才會有值 |
### `範例- 開放預約,開放於{{reserveAfterUnit}}("2") {{periodUnit}}(週)後的{{day}}(三)後的診次給民眾預約,自動鎖定{{type}}(每天) {{deadLine}}(09:00)後當天的預約`:
```json=
{
"id": 1,
"onlineReservable": true,
"periodUnit": 0,
"day": 3,
"reserveAfterUnit": "2",
"autoLockEnable": true,
"type": 0,
"deadLine": "09:00",
"deadLineLock": 0,
"beforeConsult": null
}
```
### `範例- 開放預約,開放於{{reserveAfterUnit}}("2") {{periodUnit}}(週)後的{{day}}(三)後的診次給民眾預約,自動鎖定{{type}}(每個診次) 開始前{{beforeConsult}}(60分鐘)`:
```json=
{
"id": 1,
"onlineReservable": true,
"periodUnit": 0,
"day": 3,
"reserveAfterUnit": "2",
"autoLockEnable": true,
"type": 1,
"deadLine": null,
"deadLineLock": null,
"beforeConsult": "60分鐘"
}
```
###### tags: `掛號系統`