package routes

import (
	"github.com/gofiber/fiber/v2"

	"github.com/break/junhong_cmp_fiber/internal/handler/admin"
	"github.com/break/junhong_cmp_fiber/internal/model/dto"
	"github.com/break/junhong_cmp_fiber/pkg/openapi"
)

func registerShopPackageBatchPricingRoutes(router fiber.Router, handler *admin.ShopPackageBatchPricingHandler, doc *openapi.Generator, basePath string) {
	batchPricing := router.Group("/shop-package-batch-pricing")
	groupPath := basePath + "/shop-package-batch-pricing"

	Register(batchPricing, doc, groupPath, "POST", "", handler.BatchUpdatePricing, RouteSpec{
		Summary: "批量调价",
		Tags:    []string{"批量套餐调价"},
		Input:   new(dto.BatchUpdateCostPriceRequest),
		Output:  new(dto.BatchUpdateCostPriceResponse),
		Auth:    true,
	})
}
