21
This commit is contained in:
parent
934d19fff5
commit
ed65e1966c
|
|
@ -52,6 +52,11 @@ public class GoodsCreateRequest
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string ImgUrl { get; set; } = string.Empty;
|
public string ImgUrl { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 商品Banner图片URL(详情页顶部)
|
||||||
|
/// </summary>
|
||||||
|
public string? ImgUrlBanner { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 商品详情图片URL
|
/// 商品详情图片URL
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -233,6 +238,11 @@ public class GoodsListResponse
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string ImgUrl { get; set; } = string.Empty;
|
public string ImgUrl { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 商品Banner图片URL(详情页顶部)
|
||||||
|
/// </summary>
|
||||||
|
public string? ImgUrlBanner { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 商品价格
|
/// 商品价格
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -136,6 +136,7 @@ public class GoodsService : IGoodsService
|
||||||
Price = request.Price,
|
Price = request.Price,
|
||||||
Type = (byte)request.Type,
|
Type = (byte)request.Type,
|
||||||
ImgUrl = request.ImgUrl,
|
ImgUrl = request.ImgUrl,
|
||||||
|
ImgUrlBanner = request.ImgUrlBanner,
|
||||||
ImgUrlDetail = request.ImgUrlDetail,
|
ImgUrlDetail = request.ImgUrlDetail,
|
||||||
Stock = request.Stock,
|
Stock = request.Stock,
|
||||||
SaleStock = 0,
|
SaleStock = 0,
|
||||||
|
|
@ -216,6 +217,7 @@ public class GoodsService : IGoodsService
|
||||||
goods.Price = request.Price;
|
goods.Price = request.Price;
|
||||||
goods.Type = (byte)request.Type;
|
goods.Type = (byte)request.Type;
|
||||||
goods.ImgUrl = request.ImgUrl;
|
goods.ImgUrl = request.ImgUrl;
|
||||||
|
goods.ImgUrlBanner = request.ImgUrlBanner;
|
||||||
goods.ImgUrlDetail = request.ImgUrlDetail;
|
goods.ImgUrlDetail = request.ImgUrlDetail;
|
||||||
goods.Stock = request.Stock;
|
goods.Stock = request.Stock;
|
||||||
goods.Sort = request.Sort;
|
goods.Sort = request.Sort;
|
||||||
|
|
@ -999,6 +1001,7 @@ public class GoodsService : IGoodsService
|
||||||
Id = goods.Id,
|
Id = goods.Id,
|
||||||
Title = goods.Title,
|
Title = goods.Title,
|
||||||
ImgUrl = goods.ImgUrl,
|
ImgUrl = goods.ImgUrl,
|
||||||
|
ImgUrlBanner = goods.ImgUrlBanner,
|
||||||
ImgUrlDetail = goods.ImgUrlDetail,
|
ImgUrlDetail = goods.ImgUrlDetail,
|
||||||
Price = goods.Price,
|
Price = goods.Price,
|
||||||
Type = goods.Type,
|
Type = goods.Type,
|
||||||
|
|
|
||||||
|
|
@ -340,6 +340,7 @@ public class GoodsService : IGoodsService
|
||||||
g.Id,
|
g.Id,
|
||||||
g.Title,
|
g.Title,
|
||||||
g.ImgUrl,
|
g.ImgUrl,
|
||||||
|
g.ImgUrlBanner,
|
||||||
g.ImgUrlDetail,
|
g.ImgUrlDetail,
|
||||||
g.Price,
|
g.Price,
|
||||||
g.Stock,
|
g.Stock,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user