medicine_img.go 375 B

12345678910111213141516
  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-img",
  8. beego.NSRouter("/list", &controllers.MedicineImgController{}, "*:List"),
  9. beego.NSRouter("/edit", &controllers.MedicineImgController{}, "*:Edit"),
  10. )
  11. //注册 namespace
  12. beego.AddNamespace(medicine)
  13. }