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