21
This commit is contained in:
parent
934d19fff5
commit
ed65e1966c
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -340,6 +340,7 @@ public class GoodsService : IGoodsService
|
|||
g.Id,
|
||||
g.Title,
|
||||
g.ImgUrl,
|
||||
g.ImgUrlBanner,
|
||||
g.ImgUrlDetail,
|
||||
g.Price,
|
||||
g.Stock,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user