sales.go 649 B

1234567891011121314151617181920
  1. package routers
  2. import (
  3. "Medical_ERP/controllers"
  4. beego "github.com/beego/beego/v2/server/web"
  5. )
  6. func init() {
  7. // 销售管理
  8. sales := beego.NewNamespace("/api/sales",
  9. beego.NSRouter("/list", &controllers.SalesController{}, "*:SalesList"),
  10. beego.NSRouter("/excel", &controllers.SalesController{}, "*:SalesExcel"),
  11. beego.NSRouter("/report-excel", &controllers.SalesController{}, "*:SalesReportExcel"),
  12. beego.NSRouter("/order-list", &controllers.SalesController{}, "*:SalesOrderList"),
  13. beego.NSRouter("/stock-out/export", &controllers.SalesController{}, "*:SalesStockOutExport"),
  14. )
  15. //注册 namespace
  16. beego.AddNamespace(sales)
  17. }