|
|
@@ -295,35 +295,40 @@ func InitRouter(engine *gin.Engine) {
|
|
|
zigbee.GET("/export-excel", controller.Zigbee.ExportExcel)
|
|
|
zigbee.GET("/export-template", controller.Zigbee.ExportTemplate)
|
|
|
}
|
|
|
- strategy := device.Group("/api/longchi/strategy")
|
|
|
- //智能照明(灯杆分组/灯控树) 控制器
|
|
|
- intelligentLighting := strategy.Group("IntelligentLighting")
|
|
|
- {
|
|
|
- intelligentLighting.GET("/detail", controller.IntelligentLighting.Detail)
|
|
|
- intelligentLighting.GET("/list", controller.IntelligentLighting.List)
|
|
|
- intelligentLighting.POST("/relationList", controller.IntelligentLighting.RelationList)
|
|
|
- intelligentLighting.POST("/relation", controller.IntelligentLighting.Relation)
|
|
|
- intelligentLighting.POST("/remove", controller.IntelligentLighting.Remove)
|
|
|
- intelligentLighting.POST("/changHandSwitch", controller.IntelligentLighting.ChangeHandSwitch)
|
|
|
- intelligentLighting.POST("/get_status", controller.IntelligentLighting.GetStatus)
|
|
|
- }
|
|
|
+
|
|
|
+ // 设备控制相关
|
|
|
+ strategy := engine.Group("/api/longchi/strategy")
|
|
|
+
|
|
|
+ ////智能照明(灯杆分组/灯控树) 控制器
|
|
|
+ //intelligentLighting := strategy.Group("IntelligentLighting")
|
|
|
+ //{
|
|
|
+ // intelligentLighting.GET("/detail", controller.IntelligentLighting.Detail)
|
|
|
+ // intelligentLighting.GET("/list", controller.IntelligentLighting.List)
|
|
|
+ // intelligentLighting.POST("/relationList", controller.IntelligentLighting.RelationList)
|
|
|
+ // intelligentLighting.POST("/relation", controller.IntelligentLighting.Relation)
|
|
|
+ // intelligentLighting.POST("/remove", controller.IntelligentLighting.Remove)
|
|
|
+ // intelligentLighting.POST("/changHandSwitch", controller.IntelligentLighting.ChangeHandSwitch)
|
|
|
+ // intelligentLighting.POST("/get_status", controller.IntelligentLighting.GetStatus)
|
|
|
+ //}
|
|
|
+
|
|
|
//照明策略 控制器
|
|
|
- lightstartegy := strategy.Group("lightstrategy")
|
|
|
+ lightStartegy := strategy.Group("lightstrategy")
|
|
|
{
|
|
|
- lightstartegy.GET("/detail", controller.LightStrategy.Detail)
|
|
|
- lightstartegy.GET("/list", controller.LightStrategy.List)
|
|
|
- lightstartegy.POST("/submit", controller.LightStrategy.CreateOrUpdate)
|
|
|
- lightstartegy.POST("/remove", controller.LightStrategy.Remove)
|
|
|
+ lightStartegy.GET("/detail", controller.LightStrategy.Detail)
|
|
|
+ lightStartegy.GET("/list", controller.LightStrategy.List)
|
|
|
+ lightStartegy.POST("/submit", controller.LightStrategy.CreateOrUpdate)
|
|
|
+ lightStartegy.POST("/remove", controller.LightStrategy.Remove)
|
|
|
}
|
|
|
- //照明策略略关联(灯杆分组/灯控树形态) 控制器(作废)
|
|
|
+
|
|
|
+ //照明策略略关联(灯杆分组/灯控树形态) 控制器
|
|
|
lightRelation := strategy.Group("lightrelation")
|
|
|
{
|
|
|
- lightRelation.GET("/detail", controller.LightRelation.Detail)
|
|
|
- lightRelation.GET("/list", controller.LightRelation.List)
|
|
|
- lightRelation.POST("/remove", controller.LightRelation.Remove)
|
|
|
- lightRelation.POST("/relationList", controller.LightRelation.RelationList)
|
|
|
- lightRelation.POST("/relation", controller.LightRelation.Relation)
|
|
|
- lightRelation.POST("/changeHandSwitch", controller.LightRelation.ChangeHandSwitch)
|
|
|
+ lightRelation.GET("/detail", controller.IntelligentLighting.Detail)
|
|
|
+ lightRelation.GET("/list", controller.IntelligentLighting.List)
|
|
|
+ lightRelation.POST("/remove", controller.IntelligentLighting.Remove)
|
|
|
+ lightRelation.POST("/relationList", controller.IntelligentLighting.RelationList)
|
|
|
+ lightRelation.POST("/relation", controller.IntelligentLighting.Relation)
|
|
|
+ lightRelation.POST("/changeHandSwitch", controller.IntelligentLighting.ChangeHandSwitch)
|
|
|
}
|
|
|
//灯随车走照明控制 控制器
|
|
|
onDemandLightingControl := strategy.Group("onDemandLightingControl")
|