ContractReview.go 2.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package routers
  2. import (
  3. "ERP_storage/controllers"
  4. beego "github.com/beego/beego/v2/server/web"
  5. )
  6. func init() {
  7. serviceType := beego.NewNamespace("/ServiceType",
  8. beego.NSRouter("/List", &controllers.ContractReviewController{}, "*:ServiceType_List"), // 服务类型列表
  9. beego.NSRouter("/Add", &controllers.ContractReviewController{}, "*:ServiceType_Add"), // 添加服务类型
  10. beego.NSRouter("/Edit", &controllers.ContractReviewController{}, "*:ServiceType_Edit"), // 编辑服务类型
  11. beego.NSRouter("/Del", &controllers.ContractReviewController{}, "*:ServiceType_Del"), // 删除服务类型
  12. )
  13. serviceItem := beego.NewNamespace("/ServiceItem",
  14. beego.NSRouter("/List", &controllers.ContractReviewController{}, "*:ServiceItem_List"), // 服务内容列表
  15. beego.NSRouter("/Add", &controllers.ContractReviewController{}, "*:ServiceItem_Add"), // 添加服务内容
  16. beego.NSRouter("/Edit", &controllers.ContractReviewController{}, "*:ServiceItem_Edit"), // 编辑服务内容
  17. beego.NSRouter("/Del", &controllers.ContractReviewController{}, "*:ServiceItem_Del"), // 删除服务内容
  18. )
  19. contractReview := beego.NewNamespace("/ContractReview",
  20. beego.NSRouter("/List", &controllers.ContractReviewController{}, "*:List"), // 合同评审列表
  21. beego.NSRouter("/Finance_List", &controllers.ContractReviewController{}, "*:Finance_List"), // 合同评审列表 - 财务
  22. beego.NSRouter("/Manager_List", &controllers.ContractReviewController{}, "*:Manager_List"), // 合同评审列表 - 总经理
  23. beego.NSRouter("/Submit_User_List", &controllers.ContractReviewController{}, "*:Submit_User_List"), // 负责人列表
  24. beego.NSRouter("/Add", &controllers.ContractReviewController{}, "*:Add"), // 添加合同评审
  25. beego.NSRouter("/Edit", &controllers.ContractReviewController{}, "*:Edit"), // 编辑合同评审
  26. beego.NSRouter("/Del", &controllers.ContractReviewController{}, "*:Del"), // 删除合同评审
  27. beego.NSRouter("/Submit_Audit", &controllers.ContractReviewController{}, "*:Submit_Audit"), // 提交审核
  28. beego.NSRouter("/Finance_Audit", &controllers.ContractReviewController{}, "*:Finance_Audit"), // 财务审核
  29. beego.NSRouter("/Manager_Audit", &controllers.ContractReviewController{}, "*:Manager_Audit"), // 总经理审核
  30. beego.NSRouter("/Stock_Detail_Excel", &controllers.ContractReviewController{}, "*:Stock_Detail_Excel"), // 财务导出
  31. )
  32. beego.AddNamespace(serviceType, serviceItem, contractReview)
  33. }