From 1c22b65361d81ef23bd76d0f76a3dce7ef72fd99 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期二, 31 十月 2023 10:06:56 +0800
Subject: [PATCH] 拉代码

---
 src/api/task.ts |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/api/task.ts b/src/api/task.ts
index a939691..405d0b4 100644
--- a/src/api/task.ts
+++ b/src/api/task.ts
@@ -48,7 +48,7 @@
   workHours: string
   inputMaterials: string
   outputMaterials: string
-  workers: Workers[]
+  workers: Worker[]
   allProcedureNames: string[]
   channel: number
 }
@@ -62,7 +62,7 @@
   CanStarted: boolean
 }
 
-export interface Workers {
+export interface Worker {
   workerId: string
   workerName: string
   phoneNum: string
@@ -78,7 +78,11 @@
 export interface TasksResponse {
   Tasks: Task[]
   TaskCount: number
-  workers: Workers[]
+  workers: Worker[]
   Prompt: Prompt
   ChannelAmount: number
 }
+
+export interface TasksGroupByChannel {
+  [channel: number]: TasksResponse
+}

--
Gitblit v1.8.0