fix: memberDutyInfo api; dutyInfo card in MainPage
This commit is contained in:
+15
-3
@@ -461,9 +461,14 @@ data:
|
||||
|
||||
```json
|
||||
{
|
||||
"isInDuty": true,
|
||||
"isInDuty": true, // 指示成员其当前是否在值班
|
||||
"inDutyCnt": 3,
|
||||
"currentDuty": "2"
|
||||
"currentDuty": "others",
|
||||
"place": "蓝田", // 只有当 currentDuty 为 others 时,place 才不为空
|
||||
"otherDutyStart": "2024-03-07T11:52:48.523303", // Timestamp
|
||||
"otherDutyEnd": "2024-03-07T13:52:48.523303",
|
||||
"offDutyReason": "",
|
||||
"dutyRecoverTime": ""
|
||||
}
|
||||
```
|
||||
|
||||
@@ -474,7 +479,12 @@ data:
|
||||
```json
|
||||
{
|
||||
"isInDuty": false,
|
||||
"offDutyReason": "学园维修",
|
||||
"inDutyCnt": 0,
|
||||
"currentDuty": "off", // "0" => 正常值班下班,"others" => 其他值班下班,"off" => 值班暂停
|
||||
"place": "", // 只有当 currentDuty 为 others 时,place 才不为空
|
||||
"otherDutyStart": "",
|
||||
"otherDutyEnd": "",
|
||||
"offDutyReason": "期中考试周",
|
||||
"dutyRecoverTime": "下周一"
|
||||
}
|
||||
```
|
||||
@@ -500,6 +510,8 @@ Request
|
||||
```json
|
||||
{
|
||||
"token": "token_test",
|
||||
"week": "2",
|
||||
"shift": "3",
|
||||
"conclusion": "周四第三班,一人请假,共收两台电脑,均劝退已取回。由上一班交接两台电脑,其中一台维修成功已取回,一台仍在维修。"
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user