实现套餐生效条件覆盖与购买快照

This commit is contained in:
2026-07-22 20:51:12 +09:00
parent c7f8b4c702
commit 9818537239
30 changed files with 1092 additions and 149 deletions

View File

@@ -16,7 +16,13 @@ func registerShopPackageBatchAllocationRoutes(router fiber.Router, handler *admi
Summary: "批量分配套餐",
Tags: []string{"批量套餐分配"},
Input: new(dto.BatchAllocatePackagesRequest),
Output: nil,
Output: new(dto.BatchAllocatePackagesResponse),
Auth: true,
})
Register(router, doc, basePath, "PATCH", "/shop-package-allocations/:id/expiry-base", handler.UpdateExpiryBase, RouteSpec{
Summary: "修改套餐分配生效条件覆盖",
Tags: []string{"批量套餐分配"}, Input: new(dto.UpdateAllocationExpiryBaseParams),
Output: new(dto.ShopPackageAllocationTermsResponse), Auth: true,
})
}