From 2f0ecffdf21586243f7d4aa081b6c7fcaae5dc4d Mon Sep 17 00:00:00 2001 From: break Date: Mon, 27 Jul 2026 17:44:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=A8=E8=BF=94=E5=9B=9E=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/model/dto/shop_series_grant_dto.go | 1 + internal/service/shop_series_grant/service.go | 1 + 2 files changed, 2 insertions(+) diff --git a/internal/model/dto/shop_series_grant_dto.go b/internal/model/dto/shop_series_grant_dto.go index 3df063f..960636d 100644 --- a/internal/model/dto/shop_series_grant_dto.go +++ b/internal/model/dto/shop_series_grant_dto.go @@ -9,6 +9,7 @@ type GrantPackageItem struct { // ShopSeriesGrantPackageItem 授权套餐详情(响应中的套餐信息) type ShopSeriesGrantPackageItem struct { + AllocationID uint `json:"allocation_id" description:"套餐授权ID"` PackageID uint `json:"package_id" description:"套餐ID"` PackageName string `json:"package_name" description:"套餐名称"` PackageCode string `json:"package_code" description:"套餐编码"` diff --git a/internal/service/shop_series_grant/service.go b/internal/service/shop_series_grant/service.go index 70c1dad..30a61a5 100644 --- a/internal/service/shop_series_grant/service.go +++ b/internal/service/shop_series_grant/service.go @@ -277,6 +277,7 @@ func (s *Service) buildGrantResponse(ctx context.Context, allocation *model.Shop } effectiveBase := packagepkg.EffectiveExpiryBase(pkg, pa) packages = append(packages, dto.ShopSeriesGrantPackageItem{ + AllocationID: pa.ID, PackageID: pa.PackageID, PackageName: pkg.PackageName, PackageCode: pkg.PackageCode,