GoodsOrder.go 875 B

123456789101112131415161718192021222324
  1. package routers
  2. import (
  3. "Cold_GoodsOrder/conf"
  4. "Cold_GoodsOrder/controllers"
  5. beego "github.com/beego/beego/v2/server/web"
  6. )
  7. func init() {
  8. // 订单管理
  9. ns := beego.NewNamespace(conf.Version,
  10. beego.NSNamespace("/GoodsOrder",
  11. beego.NSRouter("List", &controllers.GoodsOrderController{}, "*:GoodsOrder_List"), // 订单列表
  12. beego.NSRouter("Get", &controllers.GoodsOrderController{}, "*:GoodsOrder_Get"), // 获取订单
  13. beego.NSRouter("Add", &controllers.GoodsOrderController{}, "*:GoodsOrder_Add"), // 添加订单
  14. beego.NSRouter("Edit", &controllers.GoodsOrderController{}, "*:GoodsOrder_Edit"), // 编辑订单
  15. beego.NSRouter("Del", &controllers.GoodsOrderController{}, "*:GoodsOrder_Del"), // 删除订单
  16. beego.NSRouter("PDF", &controllers.GoodsOrderController{}, "*:GoodsOrder_PDF"), // 订单pdf
  17. ),
  18. )
  19. beego.AddNamespace(ns)
  20. }