fix: 商品类型返回值

This commit is contained in:
ccnetcore
2025-10-15 23:00:42 +08:00
parent b7a3e76d0b
commit acb2db8397
2 changed files with 10 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ public class GoodsListOutput
/// 商品参考价格
/// </summary>
public decimal ReferencePrice { get; set; }
/// <summary>
/// 商品实际价格(折扣后的价格)
/// </summary>
@@ -31,7 +31,7 @@ public class GoodsListOutput
/// 折扣金额(仅尊享包)
/// </summary>
public decimal? DiscountAmount { get; set; }
/// <summary>
/// 商品类别
/// </summary>
@@ -43,9 +43,13 @@ public class GoodsListOutput
public string Remark { get; set; }
/// <summary>
/// 折扣说明(仅尊享包)
/// </summary>
public string? DiscountDescription { get; set; }
}
/// <summary>
/// 商品类型
/// </summary>
public GoodsTypeEnum GoodsType { get; set; }
}

View File

@@ -261,7 +261,8 @@ public class PayService : ApplicationService, IPayService
GoodsCategory = goodsType.GetGoodsCategory().ToString(),
Remark = goodsType.GetRemark(),
DiscountAmount = discountAmount,
DiscountDescription = discountDescription
DiscountDescription = discountDescription,
GoodsType = goodsType
};
goodsList.Add(goodsItem);