fix
wangpengfei
2023-08-15 a86df1054649f0594e4c77174fd254b8abd800ca
router/index.go
@@ -11,6 +11,20 @@
)
type Group struct {
   CurrencyRouter
   QuotationStatusRouter
   RepositoryRouter
   SalesReturnStatusRouter
   AccountIdRouter
   IsInvoiceRouter
   RefundMethodRouter
   ServiceContractTypeRouter
   ServiceContractStatusRouter
   OrderTypeRouter
   ReportSourceRouter
   IsVisitRouter
   SolveRateRouter
   TimelyRateRouter
   BaseRouter
   UserRouter
   JwtRouter
@@ -49,6 +63,14 @@
   OrderManageRouter
   ServiceFollowupRouter
   CustomerServiceSheetRouter
   ServiceFeeManageRouter
   AuthorityRouter
   MenuRouter
   DataRouter
   DepartmentRouter
   SatisfactionRouter
   AssignRouter
   CollectionProjectionRouter
}
func InitRouter() *gin.Engine {
@@ -76,7 +98,9 @@
   }
   PrivateGroup := Router.Group("api")
   //PrivateGroup.Use(middleware.JWTAuth()).Use(middleware.CasbinHandler())
   //PrivateGroup.Use(middleware.JWTAuth())
   //PrivateGroup.Use(middleware.CasbinHandler())
   {
      routerGroup.InitJwtRouter(PrivateGroup)                  // jwt相关路由
      routerGroup.InitUserRouter(PrivateGroup)                 // 注册用户路由
@@ -115,6 +139,45 @@
      routerGroup.InitOrderManageRouter(PrivateGroup)          // 注册orderManage路由
      routerGroup.InitServiceFollowupRouter(PrivateGroup)      // 注册serviceFollowup路由
      routerGroup.InitCustomerServiceSheetRouter(PrivateGroup) // 注册customerServiceSheet路由
      routerGroup.InitServiceFeeManageRouter(PrivateGroup)     // 注册serviceFeeManage路由
      routerGroup.InitAuthorityRouter(PrivateGroup)            // 注册authority路由
      routerGroup.InitMenuRouter(PrivateGroup)                 // 注册menu路由
      routerGroup.InitDataRouter(PrivateGroup)                 // 注册data路由
      routerGroup.InitDepartmentRouter(PrivateGroup)           // 注册department路由
      routerGroup.InitSatisfactionRouter(PrivateGroup)         // 注册satisfaction路由
      routerGroup.InitTimelyRateRouter(PrivateGroup)
      routerGroup.InitSolveRateRouter(PrivateGroup)
      routerGroup.InitIsVisitRouter(PrivateGroup)
      routerGroup.InitReportSourceRouter(PrivateGroup)
      routerGroup.InitOrderTypeRouter(PrivateGroup)
      routerGroup.InitServiceContractStatusRouter(PrivateGroup)
      routerGroup.InitServiceContractTypeRouter(PrivateGroup)
      routerGroup.InitRefundMethodRouter(PrivateGroup)
      routerGroup.InitIsInvoiceRouter(PrivateGroup)
      routerGroup.InitAccountIdRouter(PrivateGroup)
      routerGroup.InitSalesReturnStatusRouter(PrivateGroup)
      routerGroup.InitRepositoryRouter(PrivateGroup)
      routerGroup.InitQuotationStatusRouter(PrivateGroup)
      routerGroup.InitCurrencyRouter(PrivateGroup)
      routerGroup.InitAssignRouter(PrivateGroup)
      InitServiceOrderRouter(PrivateGroup)
      InitFaqRouter(PrivateGroup)
      InitPriorityLevelRouter(PrivateGroup)
      InitServiceTypeRouter(PrivateGroup)
      InitSeverityRouter(PrivateGroup)
      InitTimeSpentRouter(PrivateGroup)
      InitFaultTypeRouter(PrivateGroup)
      InitServiceCollectionPlanRouter(PrivateGroup)
      InitReceiptRouter(PrivateGroup)
      InitBankAccountRouter(PrivateGroup)
      InitPaymentTypeRouter(PrivateGroup)
      InitFileRouter(PrivateGroup)
      InitInvoiceRouter(PrivateGroup)
      InitInvoiceStatusRouter(PrivateGroup)
      InitInvoiceTypeRouter(PrivateGroup)
      InitCourierCompanyRouter(PrivateGroup)
      InitProductRouter(PrivateGroup)
      routerGroup.InitCollectionProjectionRouter(PrivateGroup)
   }
   return Router
}