From 10c65da3d2af7056f48d9301e83f53f102f76e18 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期一, 30 十月 2023 14:52:11 +0800
Subject: [PATCH] fix
---
model/request/task.go | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/model/request/task.go b/model/request/task.go
index 6198d95..afa11d5 100644
--- a/model/request/task.go
+++ b/model/request/task.go
@@ -22,8 +22,7 @@
}
type GetProductProgress struct {
- ProcedureId int `json:"procedureId" binding:"required"`
- Channel int32 `json:"channel"`
+ Channel int32 `json:"channel"`
}
// ProcessModelList 宸ヨ壓鍙傛暟鍒楄〃璇锋眰鍙傛暟
@@ -32,3 +31,19 @@
ProcedureId uint `json:"procedureId" form:"procedureId" binding:"required"` //褰撳墠鐨勫伐搴廼d
Number string `json:"number" form:"number" binding:"required"` //褰撳墠姝e湪浣跨敤鐨勫伐鑹哄弬鏁扮紪鍙�
}
+
+// TaskListByChannel 鎸塩hannel杩斿洖浠诲姟鍒楄〃璇锋眰鍙傛暟
+type TaskListByChannel struct {
+ Offset int `json:"offset,omitempty" form:"offset"` //榛樿0
+ Limit int `json:"limit,omitempty" form:"limit"` //榛樿3
+ Type QueryType `json:"type,omitempty" form:"type"` //1 鏈畬鎴� 2 浠婂ぉ鏈畬鎴� 3 宸插畬鎴�
+ Channel *int32 `json:"channel" form:"channel"` //閫氶亾鍙枫�備笉浼犲彇鍏ㄩ儴鐨�
+}
+
+type QueryType int
+
+const (
+ QueryTypeUnFinish QueryType = 1
+ QueryTypeToday QueryType = 2
+ QueryTypeFinished QueryType = 3
+)
--
Gitblit v1.8.0