Files
junhong_cmp_fiber/internal/routes/asset_package_batch_order.go
break 73f5125d3d
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 8m26s
七月迭代短暂完结,还有很多后端的关键东西没有弄,这是一版赶时间做的东西
2026-07-25 17:06:58 +08:00

26 lines
1.5 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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"
)
// registerAssetPackageBatchOrderRoutes 注册资产套餐批量订购任务路由。
func registerAssetPackageBatchOrderRoutes(router fiber.Router, handler *admin.AssetPackageBatchOrderHandler, doc *openapi.Generator, basePath string) {
Register(router, doc, basePath, "POST", "/asset-package-batch-orders", handler.Create, RouteSpec{
Summary: "创建资产套餐批量订购任务", Description: "上传单列CSV对象存储Key并为整批选择一个套餐和支付方式不选择代理。",
Tags: []string{"批量订购套餐"}, Input: new(dto.CreateAssetPackageBatchOrderRequest), Output: new(dto.AssetPackageBatchOrderTaskResponse), Auth: true,
})
Register(router, doc, basePath, "GET", "/asset-package-batch-orders", handler.List, RouteSpec{
Summary: "查询资产套餐批量订购任务列表", Tags: []string{"批量订购套餐"},
Input: new(dto.ListAssetPackageBatchOrderRequest), Output: new(dto.AssetPackageBatchOrderTaskListResponse), Auth: true,
})
Register(router, doc, basePath, "GET", "/asset-package-batch-orders/:id", handler.Get, RouteSpec{
Summary: "查询资产套餐批量订购任务详情", Tags: []string{"批量订购套餐"},
Input: new(dto.GetAssetPackageBatchOrderRequest), Output: new(dto.AssetPackageBatchOrderTaskDetailResponse), Auth: true,
})
}