This commit is contained in:
2023-04-19 09:35:20 +08:00
parent c5e713c784
commit 9b57736303

View File

@@ -144,6 +144,8 @@ GET /api/tasks
list: [{ list: [{
id: 'xxxxx', // 任務ID id: 'xxxxx', // 任務ID
name: 'xxx', // 任務名稱 name: 'xxx', // 任務名稱
status: 'xxx', // 任務狀態(waiting|running|success|error)
progress: 100, // 任務進度(0~100)
data: {}, // 任務數據 data: {}, // 任務數據
createdAt: '', // 創建時間 createdAt: '', // 創建時間
updatedAt: '', // 更新時間 updatedAt: '', // 更新時間
@@ -165,9 +167,9 @@ WebSocket /api/tasks/{task_id}
```javascript ```javascript
{ {
id: 'xxxx', // 任務ID id: 'xxxx', // 任務ID
// 任務狀態 status: 'xxx', // 任務狀態(waiting|running|success|error)
// 任務進度 progress: 100, // 任務進度(0~100)
// 返回數據 data: {}, // 返回數據
} }
``` ```