【feat】完成tcp,http的设备上报,及模拟设备测试

This commit is contained in:
XM-GO
2023-09-27 15:15:15 +08:00
parent 950e8d8814
commit 9eff841b81
16 changed files with 778 additions and 168 deletions

View File

@@ -6,6 +6,7 @@ import (
"pandax/apps/device/api"
"pandax/apps/device/entity"
"pandax/apps/device/services"
ruleService "pandax/apps/rule/services"
restfulspec "github.com/emicklei/go-restful-openapi/v2"
"github.com/emicklei/go-restful/v3"
@@ -17,6 +18,7 @@ func InitProductRouter(container *restful.Container) {
DeviceApp: services.DeviceModelDao,
TemplateApp: services.ProductTemplateModelDao,
OtaAPP: services.ProductOtaModelDao,
RuleApp: ruleService.RuleChainModelDao,
}
ws := new(restful.WebService)