From 20bbbcc1d14536ddaa498ac84a6008828df8dc1c Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期三, 13 十二月 2023 20:23:11 +0800
Subject: [PATCH] 往plc写目标数时,优先往写入地址写,没有写入地址再往读取地址写

---
 model/request/common.go |   19 +++++++++++++++----
 1 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/model/request/common.go b/model/request/common.go
index 492de9d..49f61b6 100644
--- a/model/request/common.go
+++ b/model/request/common.go
@@ -5,10 +5,21 @@
 	PageSize int `json:"pageSize" form:"pageSize"` // 姣忛〉澶у皬
 }
 
-type GetById struct {
-	ID uint `json:"id"` // 涓婚敭ID
+type SetCurrentDevice struct {
+	CurrentDeviceID string `json:"currentDeviceID,omitempty"` //褰撳墠閫夊畾鐨勭敓浜ц澶�
 }
 
-type GetByUserId struct {
-	UserId string `json:"userId"` // 鐢ㄦ埛ID
+type DeviceConfig struct {
+	NeedSetProcessParams bool `json:"needSetProcessParams,omitempty"` //鏄惁闇�瑕佽缃伐鑹哄弬鏁�
+}
+
+type ReportWork struct {
+	ProcedureId  uint   `json:"procedureId,string" binding:"required"` //宸ュ簭id
+	ReportAmount int    `json:"reportAmount"  binding:"required"`      //鎶ュ伐鏁伴噺
+	WorkerID     string `json:"workerID"  binding:"required"`          //鎶ュ憡鑰卛d
+}
+
+type ReportWorkList struct {
+	PageInfo
+	ProcedureId uint `json:"procedureId,string" binding:"required" form:"procedureId"` //宸ュ簭id
 }

--
Gitblit v1.8.0