medicine.go 483 B

1234567891011121314151617
  1. package routers
  2. import (
  3. "Medical_ERP/controllers"
  4. beego "github.com/beego/beego/v2/server/web"
  5. )
  6. func init() {
  7. medicine := beego.NewNamespace("/api/medicine",
  8. beego.NSRouter("/batch-number", &controllers.MedicineController{}, "*:BatchNumber"),
  9. beego.NSRouter("/basic-data-stat", &controllers.MedicineController{}, "*:BasicDataStat"),
  10. beego.NSRouter("/msfx-query", &controllers.MedicineController{}, "*:MSFXQuery"),
  11. )
  12. //注册 namespace
  13. beego.AddNamespace(medicine)
  14. }