From 757ebcbdb3aa024793892a19606dff382ea3820e Mon Sep 17 00:00:00 2001
From: songshankun <songshankun@foxmail.com>
Date: 星期一, 27 十一月 2023 17:46:34 +0800
Subject: [PATCH] feat: 对接口
---
src/api/task.ts | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/src/api/task.ts b/src/api/task.ts
index 8be45af..ca76d50 100644
--- a/src/api/task.ts
+++ b/src/api/task.ts
@@ -16,6 +16,7 @@
startTime: number
endTime: number
Status: number
+ finishNumber: number
}
export interface Procedure {
@@ -46,8 +47,8 @@
startTime: number
endTime: number
workHours: string
- inputMaterials: string
- outputMaterials: string
+ inputMaterials: Material[]
+ outputMaterials: Material[]
workers: Worker[]
allProcedureNames: string[]
channel: number
@@ -60,6 +61,13 @@
AllProcedures: string[]
CurrentProcedureIndex: number
CanStarted: boolean
+}
+export interface Material {
+ materialId: string
+ materialName: string
+ amount: number
+ unit: string
+ date: string
}
export interface Worker {
@@ -96,6 +104,6 @@
}
export interface CraftParamsResponse {
- number: string
+ Number: string
Params: CraftParam[]
}
--
Gitblit v1.8.0