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, 2 insertions(+), 2 deletions(-) diff --git a/model/request/common.go b/model/request/common.go index 492de9d..c515c4e 100644 --- a/model/request/common.go +++ b/model/request/common.go @@ -9,6 +9,6 @@ ID uint `json:"id"` // 涓婚敭ID } -type GetByUserId struct { - UserId string `json:"userId"` // 鐢ㄦ埛ID +type SetCurrentDevice struct { + CurrentDeviceID string `json:"currentDeviceID,omitempty"` //褰撳墠閫夊畾鐨勭敓浜ц澶� } -- Gitblit v1.8.0