package routers import ( "Medical_ERP/controllers" beego "github.com/beego/beego/v2/server/web" ) func init() { medicine := beego.NewNamespace("/api/medicine", beego.NSRouter("/batch-number", &controllers.MedicineController{}, "*:BatchNumber"), beego.NSRouter("/basic-data-stat", &controllers.MedicineController{}, "*:BasicDataStat"), beego.NSRouter("/msfx-query", &controllers.MedicineController{}, "*:MSFXQuery"), ) //注册 namespace beego.AddNamespace(medicine) }