WorkOrder.go 839 B

123456789101112131415161718192021222324
  1. package routers
  2. import (
  3. "Cold_WorkOrder/conf"
  4. "Cold_WorkOrder/controllers"
  5. beego "github.com/beego/beego/v2/server/web"
  6. )
  7. func init() {
  8. // 订单管理
  9. ns := beego.NewNamespace(conf.Version,
  10. beego.NSNamespace("/WorkOrder",
  11. beego.NSRouter("/List", &controllers.WorkOrderController{}, "*:List"), // 列表
  12. beego.NSRouter("/User_List", &controllers.WorkOrderController{}, "*:User_List"), // 用户列表
  13. beego.NSRouter("/Get", &controllers.WorkOrderController{}, "*:Get"), // 获取
  14. beego.NSRouter("/Add", &controllers.WorkOrderController{}, "*:Add"), // 添加
  15. beego.NSRouter("/Up", &controllers.WorkOrderController{}, "*:Up"), // 编辑
  16. beego.NSRouter("/Del", &controllers.WorkOrderController{}, "*:Del"), // 删除
  17. ),
  18. )
  19. beego.AddNamespace(ns)
  20. }