From e8f65e16f9003358b6fbe2b860aa7e99ff329367 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期一, 28 八月 2023 10:51:13 +0800 Subject: [PATCH] 定时任务查询完成数,查到值为0不写入内存 --- model/response/common.go | 34 ++++++++++++++++++++++++++++++++++ 1 files changed, 34 insertions(+), 0 deletions(-) diff --git a/model/response/common.go b/model/response/common.go index 05246bb..ff33efc 100644 --- a/model/response/common.go +++ b/model/response/common.go @@ -11,7 +11,41 @@ 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 + Config +} + +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