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 registerShopPackageBatchAllocationRoutes(router fiber.Router, handler *admin.ShopPackageBatchAllocationHandler, doc *openapi.Generator, basePath string) {
	batchAllocations := router.Group("/shop-package-batch-allocations")
	groupPath := basePath + "/shop-package-batch-allocations"

	Register(batchAllocations, doc, groupPath, "POST", "", handler.BatchAllocate, RouteSpec{
		Summary: "批量分配套餐",
		Tags:    []string{"批量套餐分配"},
		Input:   new(dto.BatchAllocatePackagesRequest),
		Output:  nil,
		Auth:    true,
	})
}
