From fecd8ff508b33715cbe24ca892fc19a2d1ad1ef5 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期一, 06 十一月 2023 16:34:05 +0800 Subject: [PATCH] 加锁解决同时读串口时报的资源不可用和超时报错 --- model/request/common.go | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/model/request/common.go b/model/request/common.go index 952d6c6..c515c4e 100644 --- a/model/request/common.go +++ b/model/request/common.go @@ -8,3 +8,7 @@ type GetById struct { ID uint `json:"id"` // 涓婚敭ID } + +type SetCurrentDevice struct { + CurrentDeviceID string `json:"currentDeviceID,omitempty"` //褰撳墠閫夊畾鐨勭敓浜ц澶� +} -- Gitblit v1.8.0