diff --git a/internal/routes/admin.go b/internal/routes/admin.go index c911220..f832bb8 100644 --- a/internal/routes/admin.go +++ b/internal/routes/admin.go @@ -77,18 +77,15 @@ func RegisterAdminRoutes(router fiber.Router, handlers *bootstrap.Handlers, midd if handlers.PackageUsage != nil { registerPackageUsageRoutes(authGroup, handlers.PackageUsage, doc, basePath) } - if handlers.ShopSeriesAllocation != nil { - registerShopSeriesAllocationRoutes(authGroup, handlers.ShopSeriesAllocation, doc, basePath) - } - if handlers.ShopPackageAllocation != nil { - registerShopPackageAllocationRoutes(authGroup, handlers.ShopPackageAllocation, doc, basePath) - } if handlers.ShopPackageBatchAllocation != nil { registerShopPackageBatchAllocationRoutes(authGroup, handlers.ShopPackageBatchAllocation, doc, basePath) } if handlers.ShopPackageBatchPricing != nil { registerShopPackageBatchPricingRoutes(authGroup, handlers.ShopPackageBatchPricing, doc, basePath) } + if handlers.ShopSeriesGrant != nil { + registerShopSeriesGrantRoutes(authGroup, handlers.ShopSeriesGrant, doc, basePath) + } if handlers.AdminOrder != nil { registerAdminOrderRoutes(authGroup, handlers.AdminOrder, doc, basePath) } diff --git a/pkg/openapi/handlers.go b/pkg/openapi/handlers.go index 1d45044..5a4d8c1 100644 --- a/pkg/openapi/handlers.go +++ b/pkg/openapi/handlers.go @@ -39,10 +39,9 @@ func BuildDocHandlers() *bootstrap.Handlers { Package: admin.NewPackageHandler(nil), PackageUsage: admin.NewPackageUsageHandler(nil), H5PackageUsage: h5.NewPackageUsageHandler(nil, nil), - ShopSeriesAllocation: admin.NewShopSeriesAllocationHandler(nil), - ShopPackageAllocation: admin.NewShopPackageAllocationHandler(nil), ShopPackageBatchAllocation: admin.NewShopPackageBatchAllocationHandler(nil), ShopPackageBatchPricing: admin.NewShopPackageBatchPricingHandler(nil), + ShopSeriesGrant: admin.NewShopSeriesGrantHandler(nil), AdminOrder: admin.NewOrderHandler(nil, nil), H5Order: h5.NewOrderHandler(nil), H5Recharge: h5.NewRechargeHandler(nil),