package routers import ( "Cold_Api/conf" "Cold_Api/controllers" beego "github.com/beego/beego/v2/server/web" ) func init() { ns := beego.NewNamespace(conf.Version, beego.NSRouter("/ProductUpgrade/List", &controllers.ProductController{}, "*:ProductUpgrade_List"), // 设备版本升级列表 beego.NSRouter("/ProductUpgrade/Add", &controllers.ProductController{}, "*:ProductUpgrade_Add"), // 添加设备版本升级 beego.NSRouter("/ProductUpgrade/Del", &controllers.ProductController{}, "*:ProductUpgrade_Del"), // 删除设备版本升级 beego.NSRouter("/ProductUpgrade/T_model_List", &controllers.ProductController{}, "*:ProductUpgrade_T_model_List"), // 设备版本升级-产品型号列表 ) beego.AddNamespace(ns) }