From 02a84fb6fb2a39bfe7fc5cf6c0137bbf231b17fe Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期四, 09 十一月 2023 14:14:17 +0800 Subject: [PATCH] 设备列表返回是否设置工艺参数字段 --- router/index.go | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/router/index.go b/router/index.go index 09d6b40..df7e1dd 100644 --- a/router/index.go +++ b/router/index.go @@ -68,6 +68,20 @@ processModelGroup.GET("list", processModelApi.List) // 宸ヨ壓鍙傛暟鍒楄〃 } + deviceApi := new(v1.DeviceApi) + deviceGroup := v1Group.Group("device") + { + deviceGroup.GET("list", deviceApi.DeviceList) // 鍙�夎澶囧垪琛� + deviceGroup.POST("setCurrentDeviceId", deviceApi.SetCurrentDeviceId) // 鍒囨崲璁惧ID + deviceGroup.POST("config", deviceApi.Config) // 閰嶇疆涓�浜涘瓧娈� + } + + systemApi := new(v1.SystemApi) + systemGroup := v1Group.Group("system") + { + systemGroup.GET("problemList", systemApi.ProblemList) // 闂璇婃柇鍒楄〃 + } + //eventsApi := new(v1.EventsApi) //eventsGroup := v1Group.Group("events") //{ -- Gitblit v1.8.0