This commit is contained in:
@@ -9,6 +9,7 @@ type GrantPackageItem struct {
|
|||||||
|
|
||||||
// ShopSeriesGrantPackageItem 授权套餐详情(响应中的套餐信息)
|
// ShopSeriesGrantPackageItem 授权套餐详情(响应中的套餐信息)
|
||||||
type ShopSeriesGrantPackageItem struct {
|
type ShopSeriesGrantPackageItem struct {
|
||||||
|
AllocationID uint `json:"allocation_id" description:"套餐授权ID"`
|
||||||
PackageID uint `json:"package_id" description:"套餐ID"`
|
PackageID uint `json:"package_id" description:"套餐ID"`
|
||||||
PackageName string `json:"package_name" description:"套餐名称"`
|
PackageName string `json:"package_name" description:"套餐名称"`
|
||||||
PackageCode string `json:"package_code" description:"套餐编码"`
|
PackageCode string `json:"package_code" description:"套餐编码"`
|
||||||
|
|||||||
@@ -277,6 +277,7 @@ func (s *Service) buildGrantResponse(ctx context.Context, allocation *model.Shop
|
|||||||
}
|
}
|
||||||
effectiveBase := packagepkg.EffectiveExpiryBase(pkg, pa)
|
effectiveBase := packagepkg.EffectiveExpiryBase(pkg, pa)
|
||||||
packages = append(packages, dto.ShopSeriesGrantPackageItem{
|
packages = append(packages, dto.ShopSeriesGrantPackageItem{
|
||||||
|
AllocationID: pa.ID,
|
||||||
PackageID: pa.PackageID,
|
PackageID: pa.PackageID,
|
||||||
PackageName: pkg.PackageName,
|
PackageName: pkg.PackageName,
|
||||||
PackageCode: pkg.PackageCode,
|
PackageCode: pkg.PackageCode,
|
||||||
|
|||||||
Reference in New Issue
Block a user