From 62feac7e932a1faf6c05d7ac8df4c25a113eeb88 Mon Sep 17 00:00:00 2001
From: songshankun <songshankun@foxmail.com>
Date: 星期二, 31 十月 2023 20:21:08 +0800
Subject: [PATCH] feat: 添加任务信息组件

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

diff --git a/src/api/task.ts b/src/api/task.ts
index a939691..8be45af 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,24 @@
 export interface TasksResponse {
   Tasks: Task[]
   TaskCount: number
-  workers: Workers[]
+  workers: Worker[]
   Prompt: Prompt
   ChannelAmount: number
 }
+
+export interface TasksGroupByChannel {
+  [channel: number]: TasksResponse
+}
+
+/**
+ * 宸ヨ壓鍙傛暟
+ */
+export interface CraftParam {
+  Key: string
+  Value: string
+}
+
+export interface CraftParamsResponse {
+  number: string
+  Params: CraftParam[]
+}

--
Gitblit v1.8.0