refactor api for dutyinfo
This commit is contained in:
+16
-5
@@ -44,9 +44,12 @@ data:
|
||||
{
|
||||
"isInDuty": true,
|
||||
"inDutyCnt": 3,
|
||||
"currentDuty": "2",
|
||||
"place": "东三-204",
|
||||
"otherDutyTime": ""
|
||||
"currentDuty": "1",
|
||||
"place": "", // 只有当 currentDuty 为 others 时,place 和 值班时间 才不为空
|
||||
"otherDutyStart": "",
|
||||
"otherDutyEnd": "",
|
||||
"offDutyReason": "",
|
||||
"dutyRecoverTime": ""
|
||||
}
|
||||
```
|
||||
|
||||
@@ -59,8 +62,11 @@ data:
|
||||
"isInDuty": true,
|
||||
"inDutyCnt": 3,
|
||||
"currentDuty": "others",
|
||||
"place": "蓝田",
|
||||
"otherDutyTime": "9:30-11:30"
|
||||
"place": "蓝田", // 只有当 currentDuty 为 others 时,place 才不为空
|
||||
"otherDutyStart": "2024-03-07T11:52:48.523303", // Timestamp
|
||||
"otherDutyEnd": "2024-03-07T13:52:48.523303",
|
||||
"offDutyReason": "",
|
||||
"dutyRecoverTime": ""
|
||||
}
|
||||
```
|
||||
|
||||
@@ -71,6 +77,11 @@ data:
|
||||
```json
|
||||
{
|
||||
"isInDuty": false,
|
||||
"inDutyCnt": 0,
|
||||
"currentDuty": "0", // '0' 代表正常值班时间下班,'others' 代表其他值班时间下班
|
||||
"place": "",
|
||||
"otherDutyStart": "",
|
||||
"otherDutyEnd": "",
|
||||
"offDutyReason": "学园维修",
|
||||
"dutyRecoverTime": "下周一"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user