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.POST("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") //{