From ef7d02ce56e98e8cbc5ed6ec746ea39bf0b8c9e2 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期六, 16 九月 2023 22:44:58 +0800 Subject: [PATCH] 增加实时获取生产进度接口 --- model/response/common.go | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 45 insertions(+), 0 deletions(-) diff --git a/model/response/common.go b/model/response/common.go index 05246bb..788dd40 100644 --- a/model/response/common.go +++ b/model/response/common.go @@ -2,6 +2,7 @@ import ( "apsClient/model" + "apsClient/model/common" ) type PageResult struct { @@ -11,7 +12,51 @@ 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 + + Position int //褰撳墠浠诲姟鍦ㄨ澶囩鍑犱釜浣嶇疆 + AllProcedures []string + CurrentProcedureIndex int +} + +type TaskResponse struct { + Tasks []*TaskData + TaskCount int64 + Workers []*common.ProcedureWorker `json:"workers"` // 浜哄憳鍒楄〃 +} + +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"` + PlcStatus int `json:"plcStatus"` +} + +type TaskCountdown struct { + CountDownHour int64 //鍊掕鏃� 鏃� + CountDownMinute int64 //鍊掕鏃� 鍒� + ShowCountDown bool //鏄惁灞曠ず鍊掕鏃� } -- Gitblit v1.8.0