修改 bundle 路由
This commit is contained in:
parent
0b7c37c18b
commit
ba58964238
1
go.mod
1
go.mod
@ -5,6 +5,7 @@ go 1.18
|
|||||||
replace (
|
replace (
|
||||||
github.com/fonchain_enterprise/utils/aes => ../utils/aes
|
github.com/fonchain_enterprise/utils/aes => ../utils/aes
|
||||||
github.com/fonchain_enterprise/utils/objstorage => ../utils/objstorage
|
github.com/fonchain_enterprise/utils/objstorage => ../utils/objstorage
|
||||||
|
//github.com/fonchain_enterprise/utils/objstorage => ../../tyfon-新/utils/objstorage
|
||||||
)
|
)
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -10,6 +10,8 @@ import (
|
|||||||
func BundleRouter(r *gin.RouterGroup) {
|
func BundleRouter(r *gin.RouterGroup) {
|
||||||
bundleRoute := r.Group("bundle")
|
bundleRoute := r.Group("bundle")
|
||||||
bundleRoute.Use(middleware.CheckWebLogin(service.AccountProvider))
|
bundleRoute.Use(middleware.CheckWebLogin(service.AccountProvider))
|
||||||
|
bundleAppRoute := r.Group("bundle")
|
||||||
|
bundleAppRoute.Use(middleware.CheckLogin(service.AccountFieeProvider))
|
||||||
// 套餐
|
// 套餐
|
||||||
{
|
{
|
||||||
bundleClientRoute := bundleRoute.Group("system")
|
bundleClientRoute := bundleRoute.Group("system")
|
||||||
@ -17,9 +19,10 @@ func BundleRouter(r *gin.RouterGroup) {
|
|||||||
bundleClientRoute.POST("create", bundle.CreateBundle)
|
bundleClientRoute.POST("create", bundle.CreateBundle)
|
||||||
bundleClientRoute.POST("update", bundle.UpdateBundle)
|
bundleClientRoute.POST("update", bundle.UpdateBundle)
|
||||||
bundleClientRoute.POST("remove", bundle.DeleteBundle)
|
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)
|
bundleAppRoute.POST("bundle-list", bundle.BundleList)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user