zhangqian
2023-11-09 02a84fb6fb2a39bfe7fc5cf6c0137bbf231b17fe
router/index.go
@@ -71,8 +71,15 @@
   deviceApi := new(v1.DeviceApi)
   deviceGroup := v1Group.Group("device")
   {
      deviceGroup.GET("list", deviceApi.DeviceList)                       // 可选设备列表
      deviceGroup.GET("setCurrentDeviceId", deviceApi.SetCurrentDeviceId) // 切换设备ID
      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)