1234567891011121314151617181920 |
- package routers
- import (
- "Medical_ERP/controllers"
- beego "github.com/beego/beego/v2/server/web"
- )
- func init() {
- // 销售管理
- sales := beego.NewNamespace("/api/sales",
- beego.NSRouter("/list", &controllers.SalesController{}, "*:SalesList"),
- beego.NSRouter("/excel", &controllers.SalesController{}, "*:SalesExcel"),
- beego.NSRouter("/report-excel", &controllers.SalesController{}, "*:SalesReportExcel"),
- beego.NSRouter("/order-list", &controllers.SalesController{}, "*:SalesOrderList"),
- beego.NSRouter("/stock-out/export", &controllers.SalesController{}, "*:SalesStockOutExport"),
- )
- //注册 namespace
- beego.AddNamespace(sales)
- }
|