This commit is contained in:
zpc 2026-03-01 16:52:36 +08:00
parent 934d19fff5
commit ed65e1966c
3 changed files with 14 additions and 0 deletions

View File

@ -52,6 +52,11 @@ public class GoodsCreateRequest
/// </summary>
public string ImgUrl { get; set; } = string.Empty;
/// <summary>
/// 商品Banner图片URL详情页顶部
/// </summary>
public string? ImgUrlBanner { get; set; }
/// <summary>
/// 商品详情图片URL
/// </summary>
@ -233,6 +238,11 @@ public class GoodsListResponse
/// </summary>
public string ImgUrl { get; set; } = string.Empty;
/// <summary>
/// 商品Banner图片URL详情页顶部
/// </summary>
public string? ImgUrlBanner { get; set; }
/// <summary>
/// 商品价格
/// </summary>

View File

@ -136,6 +136,7 @@ public class GoodsService : IGoodsService
Price = request.Price,
Type = (byte)request.Type,
ImgUrl = request.ImgUrl,
ImgUrlBanner = request.ImgUrlBanner,
ImgUrlDetail = request.ImgUrlDetail,
Stock = request.Stock,
SaleStock = 0,
@ -216,6 +217,7 @@ public class GoodsService : IGoodsService
goods.Price = request.Price;
goods.Type = (byte)request.Type;
goods.ImgUrl = request.ImgUrl;
goods.ImgUrlBanner = request.ImgUrlBanner;
goods.ImgUrlDetail = request.ImgUrlDetail;
goods.Stock = request.Stock;
goods.Sort = request.Sort;
@ -999,6 +1001,7 @@ public class GoodsService : IGoodsService
Id = goods.Id,
Title = goods.Title,
ImgUrl = goods.ImgUrl,
ImgUrlBanner = goods.ImgUrlBanner,
ImgUrlDetail = goods.ImgUrlDetail,
Price = goods.Price,
Type = goods.Type,

View File

@ -340,6 +340,7 @@ public class GoodsService : IGoodsService
g.Id,
g.Title,
g.ImgUrl,
g.ImgUrlBanner,
g.ImgUrlDetail,
g.Price,
g.Stock,