|
@@ -24,25 +24,30 @@ func Routers() *gin.Engine {
|
|
|
Router.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
|
|
|
global.GVA_LOG.Info("register swagger handler")
|
|
|
|
|
|
- ApiGroup := Router.Group("")
|
|
|
- router.InitUserRouter(ApiGroup)
|
|
|
- router.InitBaseRouter(ApiGroup)
|
|
|
- router.InitMenuRouter(ApiGroup)
|
|
|
- router.InitAuthorityRouter(ApiGroup)
|
|
|
- router.InitApiRouter(ApiGroup)
|
|
|
- router.InitFileUploadAndDownloadRouter(ApiGroup)
|
|
|
- router.InitSimpleUploaderRouter(ApiGroup)
|
|
|
- router.InitWorkflowRouter(ApiGroup)
|
|
|
- router.InitCasbinRouter(ApiGroup)
|
|
|
- router.InitJwtRouter(ApiGroup)
|
|
|
- router.InitSystemRouter(ApiGroup)
|
|
|
- router.InitCustomerRouter(ApiGroup)
|
|
|
- router.InitAutoCodeRouter(ApiGroup)
|
|
|
- router.InitSysDictionaryDetailRouter(ApiGroup)
|
|
|
- router.InitSysDictionaryRouter(ApiGroup)
|
|
|
- router.InitSysOperationRecordRouter(ApiGroup)
|
|
|
- router.InitEmailRouter(ApiGroup)
|
|
|
-
|
|
|
+ PublicGroup := Router.Group("")
|
|
|
+ {
|
|
|
+ router.InitBaseRouter(PublicGroup)
|
|
|
+ }
|
|
|
+ PrivateGroup := Router.Group("")
|
|
|
+ PrivateGroup.Use(middleware.JWTAuth()).Use(middleware.CasbinHandler()).Use(middleware.OperationRecord())
|
|
|
+ {
|
|
|
+ router.InitApiRouter(PrivateGroup)
|
|
|
+ router.InitJwtRouter(PrivateGroup)
|
|
|
+ router.InitUserRouter(PrivateGroup)
|
|
|
+ router.InitMenuRouter(PrivateGroup)
|
|
|
+ router.InitEmailRouter(PrivateGroup)
|
|
|
+ router.InitSystemRouter(PrivateGroup)
|
|
|
+ router.InitCasbinRouter(PrivateGroup)
|
|
|
+ router.InitWorkflowRouter(PrivateGroup)
|
|
|
+ router.InitCustomerRouter(PrivateGroup)
|
|
|
+ router.InitAutoCodeRouter(PrivateGroup)
|
|
|
+ router.InitAuthorityRouter(PrivateGroup)
|
|
|
+ router.InitSimpleUploaderRouter(PrivateGroup)
|
|
|
+ router.InitSysDictionaryRouter(PrivateGroup)
|
|
|
+ router.InitSysOperationRecordRouter(PrivateGroup)
|
|
|
+ router.InitSysDictionaryDetailRouter(PrivateGroup)
|
|
|
+ router.InitFileUploadAndDownloadRouter(PrivateGroup)
|
|
|
+ }
|
|
|
global.GVA_LOG.Info("router register success")
|
|
|
return Router
|
|
|
}
|