Product.go 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package routers
  2. import (
  3. "AIOTCOER/controllers"
  4. beego "github.com/beego/beego/v2/server/web"
  5. )
  6. func init() {
  7. prefix := "/Product"
  8. // 产品类型
  9. //beego.Router(prefix+"/ProductType/Add", &controllers.ProductTypeController{}, "*:Add") //
  10. beego.Router(prefix+"Type/Get", &controllers.ProductTypeController{}, "*:Get") //
  11. beego.Router(prefix+"Type/List", &controllers.ProductTypeController{}, "*:List") //
  12. beego.Router(prefix+"Type/Update", &controllers.ProductTypeController{}, "*:Update") //
  13. beego.Router(prefix+"Type/Delete", &controllers.ProductTypeController{}, "*:Delete") //
  14. // 统计流量
  15. beego.Router(prefix+"Type/FlowCount", &controllers.StatisticalDataController{}, "*:FlowCountList") // *全部; get,post:
  16. // 接入网关
  17. beego.Router(prefix+"Mode/Import", &controllers.ProductModeController{}, "*:Import") //
  18. beego.Router(prefix+"Mode/List", &controllers.ProductModeController{}, "*:ProductModeLists") //
  19. beego.Router(prefix+"Mode/Updata", &controllers.ProductModeController{}, "*:Updata") //
  20. beego.Router(prefix+"Lang/List", &controllers.ProductProtController{}, "*:ProductLangList") //
  21. // 产品OTA
  22. //----------- 配置图片
  23. beego.Router(prefix+"OTA/FileToken", &controllers.UpFileController{}, "*:UpFileToken") // *全部; get,post:
  24. beego.Router(prefix+"OTA/Add", &controllers.ProductOTAController{}, "*:Add") //
  25. beego.Router(prefix+"OTA/Get", &controllers.ProductOTAController{}, "*:Get") //
  26. beego.Router(prefix+"OTA/List", &controllers.ProductOTAController{}, "*:List") //
  27. beego.Router(prefix+"OTA/Delete", &controllers.ProductOTAController{}, "*:Delete") //
  28. beego.Router("/RunTime", &controllers.SystemController{}, "*:RunTime") //
  29. beego.Router("/SystemConfig", &controllers.SystemController{}, "*:SystemConfig") //
  30. }