| | |
| | | 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) |