diff --git a/go.mod b/go.mod index 8234332..9f1a0e8 100644 --- a/go.mod +++ b/go.mod @@ -5,6 +5,7 @@ go 1.18 replace ( github.com/fonchain_enterprise/utils/aes => ../utils/aes github.com/fonchain_enterprise/utils/objstorage => ../utils/objstorage + //github.com/fonchain_enterprise/utils/objstorage => ../../tyfon-新/utils/objstorage ) // diff --git a/pkg/router/bundle.go b/pkg/router/bundle.go index 42ba7fe..9d33b00 100644 --- a/pkg/router/bundle.go +++ b/pkg/router/bundle.go @@ -10,6 +10,8 @@ import ( func BundleRouter(r *gin.RouterGroup) { bundleRoute := r.Group("bundle") bundleRoute.Use(middleware.CheckWebLogin(service.AccountProvider)) + bundleAppRoute := r.Group("bundle") + bundleAppRoute.Use(middleware.CheckLogin(service.AccountFieeProvider)) // 套餐 { bundleClientRoute := bundleRoute.Group("system") @@ -17,9 +19,10 @@ func BundleRouter(r *gin.RouterGroup) { bundleClientRoute.POST("create", bundle.CreateBundle) bundleClientRoute.POST("update", bundle.UpdateBundle) bundleClientRoute.POST("remove", bundle.DeleteBundle) + bundleClientRoute.POST("bundle-list", bundle.BundleList) } - bundleAppRoute := bundleRoute.Group("common") + bundleAppRoute = bundleAppRoute.Group("common") { bundleAppRoute.POST("bundle-list", bundle.BundleList) }