add askleave page
This commit is contained in:
+38
@@ -347,3 +347,41 @@ data:
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### 请假管理页面
|
||||
|
||||
#### 获取请假列表 `GET /leader/askleavelist`
|
||||
|
||||
request:
|
||||
|
||||
```json
|
||||
{
|
||||
"current": 1,
|
||||
"pageSize": 10,
|
||||
"member?": "晓洋", // 如果不筛选则不出现在 request-body 内
|
||||
"week": "all" | "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun", // all 之外的选项用于筛选
|
||||
"shift": "all" | "first" | "second" | "third" // all 之外的选项用于筛选
|
||||
}
|
||||
```
|
||||
|
||||
data:
|
||||
|
||||
```json
|
||||
{
|
||||
"page": 1,
|
||||
"total": 24,
|
||||
"success": true,
|
||||
"data": [
|
||||
{
|
||||
"member": "宇航员",
|
||||
"avatar": "https://...",
|
||||
"time": "2024-03-07T19:52:48.523303",
|
||||
"week": "2",
|
||||
"shift": "3",
|
||||
"reason": "家庭原因",
|
||||
"substitute": "晓洋" // 未找人代班则为空
|
||||
}
|
||||
// ...
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user