Product.go 792 B

1234567891011121314151617
  1. package routers
  2. import (
  3. "Cold_Api/conf"
  4. "Cold_Api/controllers"
  5. beego "github.com/beego/beego/v2/server/web"
  6. )
  7. func init() {
  8. ns := beego.NewNamespace(conf.Version,
  9. beego.NSRouter("/ProductUpgrade/List", &controllers.ProductController{}, "*:ProductUpgrade_List"), // 设备版本升级列表
  10. beego.NSRouter("/ProductUpgrade/Add", &controllers.ProductController{}, "*:ProductUpgrade_Add"), // 添加设备版本升级
  11. beego.NSRouter("/ProductUpgrade/Del", &controllers.ProductController{}, "*:ProductUpgrade_Del"), // 删除设备版本升级
  12. beego.NSRouter("/ProductUpgrade/T_model_List", &controllers.ProductController{}, "*:ProductUpgrade_T_model_List"), // 设备版本升级-产品型号列表
  13. )
  14. beego.AddNamespace(ns)
  15. }