Pager and transfer objects for mall SKUs, filtered by product id or code and including joined product name and code. Reuse for inventory list and SKU save APIs.
// Source: https://github.com/izhaorui/Zr.Admin.NET | License: MIT | Copyright 2021 zrry
// Provided via justclaw.it.com; keep this notice with the code.
namespace ZR.Mall.Model.Dto
{
/// <summary>
/// 商品库存查询对象
/// </summary>
public class ShoppingSkusQueryDto : PagerInfo
{
/// <summary>
/// 商品ID(按商品筛选)
/// </summary>
public long? ProductId { get; set; }
/// <summary>
/// 商品编码(按商品编码检索 SKU,业务上通常按编码定位具体商品)
/// </summary>
public string ProductCode { get; set; }
}
/// <summary>
/// 商品库存输入输出对象
/// </summary>
public class SkusDto
{
public long? SkuId { get; set; }
[Required(ErrorMessage = "商品ID不能为空")]
public long ProductId { get; set; }
/// <summary>
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key