123456789101112131415161718192021222324 |
- package routers
- import (
- "Medical_ERP/controllers"
- beego "github.com/beego/beego/v2/server/web"
- )
- func init() {
- medicineTemplate := beego.NewNamespace("/api/medicine-template",
- beego.NSRouter("/init", &controllers.MedicineTemplateController{}, "*:Initialize"),
- beego.NSRouter("/list", &controllers.MedicineTemplateController{}, "*:List"),
- beego.NSRouter("/add", &controllers.MedicineTemplateController{}, "*:Add"),
- beego.NSRouter("/edit", &controllers.MedicineTemplateController{}, "*:Edit"),
- beego.NSRouter("/delete", &controllers.MedicineTemplateController{}, "*:Delete"),
- beego.NSRouter("/columns", &controllers.MedicineTemplateController{}, "*:Columns"),
- beego.NSRouter("/list-for-stock", &controllers.MedicineTemplateController{}, "*:ListForStock"),
- beego.NSRouter("/list-for-stock-out", &controllers.MedicineTemplateController{}, "*:ListForStockOut"),
- beego.NSRouter("/scan-code/stock-in-list", &controllers.MedicineTemplateController{}, "*:ListForStockInScanCode"), // 扫码入库列表
- beego.NSRouter("/scan-code/stock-out-list", &controllers.MedicineTemplateController{}, "*:ListForStockOutScanCode"), // 扫码出库列表
- )
- //注册 namespace
- beego.AddNamespace(medicineTemplate)
- }
|