修复反馈
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 8m30s

This commit is contained in:
2026-08-10 16:30:38 +08:00
parent 7aa03e91fb
commit f15a64395f
25 changed files with 527 additions and 90 deletions

View File

@@ -54,6 +54,20 @@ func (h *ShopSeriesGrantHandler) List(c *fiber.Ctx) error {
return response.SuccessWithPagination(c, result.List, result.Total, result.Page, result.PageSize)
}
// ListPackageOptions 查询授权页面的套餐候选项。
// GET /api/admin/shop-series-grants/package-options
func (h *ShopSeriesGrantHandler) ListPackageOptions(c *fiber.Ctx) error {
var req dto.ShopSeriesGrantPackageOptionRequest
if err := c.QueryParser(&req); err != nil {
return errors.New(errors.CodeInvalidParam, "请求参数解析失败")
}
result, err := h.service.ListPackageOptions(c.UserContext(), &req)
if err != nil {
return err
}
return response.Success(c, result)
}
// Get 查询系列授权详情
// GET /api/admin/shop-series-grants/:id
func (h *ShopSeriesGrantHandler) Get(c *fiber.Ctx) error {