fix: change dutyinfo api
This commit is contained in:
+14
-4
@@ -67,7 +67,7 @@ data:
|
||||
"isNormalDuty": true, // 判断是否是正常值班时间
|
||||
"currentDuty": "1", // 判断是否正在值班 / 值哪一班 "1" | "2" | "3" => 正在值班,"off" => 值班下班
|
||||
"inDutyCnt": 3,
|
||||
"otherDutyTime": "", // 正常值班时为空
|
||||
"otherDutyTime": [], // 正常值班时为空
|
||||
"offDutyReason": "",
|
||||
"place": "204",
|
||||
"dutyRecoverTime": ""
|
||||
@@ -83,7 +83,17 @@ data:
|
||||
"isNormalDuty": false, // 判断是否是正常值班时间
|
||||
"currentDuty": "others", // 判断是否正在值班 / 值哪一班 "others" => 正在值班,"off" => 值班下班
|
||||
"inDutyCnt": 3,
|
||||
"otherDutyTime": "",
|
||||
"otherDutyTime": [
|
||||
{
|
||||
"name": "第一班",
|
||||
"range": ["2024-03-07T19:52:48.523303", "2024-03-07T19:52:48.523303"]
|
||||
},
|
||||
{
|
||||
"name": "第二班",
|
||||
"range": ["2024-03-07T19:52:48.523303", "2024-03-07T19:52:48.523303"]
|
||||
},
|
||||
...
|
||||
],
|
||||
"offDutyReason": "",
|
||||
"place": "204",
|
||||
"dutyRecoverTime": ""
|
||||
@@ -98,10 +108,10 @@ request:
|
||||
|
||||
```json
|
||||
{
|
||||
"isNormalDuty": false,
|
||||
"isNormalDuty": true,
|
||||
"currentDuty": "2",
|
||||
"inDutyCnt": 3,
|
||||
"otherDutyTime": "",
|
||||
"otherDutyTime": [],
|
||||
"offDutyReason": "",
|
||||
"place": "204",
|
||||
"dutyRecoverTime": "",
|
||||
|
||||
Reference in New Issue
Block a user