From ffdeee34afd3c28f603584e80039fc1dc30f1ff9 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期三, 13 九月 2023 17:27:22 +0800 Subject: [PATCH] 下发工艺参数时记录该工序对应的设备位置 --- model/response/common.go | 45 +++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 43 insertions(+), 2 deletions(-) diff --git a/model/response/common.go b/model/response/common.go index 05246bb..269909f 100644 --- a/model/response/common.go +++ b/model/response/common.go @@ -11,7 +11,48 @@ PageSize int `json:"pageSize"` } +type ListResponse struct { + Code int `json:"code"` + Msg string `json:"msg"` + Data interface{} `json:"data"` + Count int64 `json:"count"` +} + type TaskData struct { - Order *model.Order - Procedure *model.Procedures + Order *model.Order + Procedure *model.Procedures + Position int //褰撳墠浠诲姟鍦ㄨ澶囩鍑犱釜浣嶇疆 + AllProcedures []string + CurrentProcedureIndex int +} + +type TaskResponse struct { + Tasks []*TaskData + TaskCount int64 +} + +type Config struct { + DeviceName string + DeviceStatus string +} + +type ProcessParamsResponse struct { + Number string + Params []ProcessParams +} + +type ProcessParams struct { + Key string + Value interface{} +} + +type ProductProgress struct { + FinishNumber int `json:"finishNumber"` + TotalNumber int `json:"totalNumber"` +} + +type TaskCountdown struct { + CountDownHour int64 //鍊掕鏃� 鏃� + CountDownMinute int64 //鍊掕鏃� 鍒� + ShowCountDown bool //鏄惁灞曠ず鍊掕鏃� } -- Gitblit v1.8.0