From 24991928e6b6123751c05f166678883a89e4bf0a Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 03 十一月 2023 16:19:41 +0800
Subject: [PATCH] fix
---
router/index.go | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/router/index.go b/router/index.go
index 09d6b40..e0e357c 100644
--- a/router/index.go
+++ b/router/index.go
@@ -68,6 +68,19 @@
processModelGroup.GET("list", processModelApi.List) // 宸ヨ壓鍙傛暟鍒楄〃
}
+ deviceApi := new(v1.DeviceApi)
+ deviceGroup := v1Group.Group("device")
+ {
+ deviceGroup.GET("list", deviceApi.DeviceList) // 鍙�夎澶囧垪琛�
+ deviceGroup.GET("setCurrentDeviceId", deviceApi.SetCurrentDeviceId) // 鍒囨崲璁惧ID
+ }
+
+ 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