Files
KJD/Store.Product/Models/Product/ProductBase.cs
T
2026-09-11 19:11:12 +08:00

140 lines
3.6 KiB
C#

using Store.Product.Models.Product.Sku;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Store.Product.Models.Product;
/// <summary>
/// 商品属性基类
/// </summary>
public class ProductBase
{
private string _gid = Guid.NewGuid().ToString();
/// <summary>
/// 唯一ID
/// </summary>
public string Gid
{
get
{
return _gid;
}
}
/// <summary>
/// 商品ID
/// </summary>
public long Id { get; set; }
/// <summary>
/// 标题
/// </summary>
public string Title { get; set; }
/// <summary>
/// 商铺名称
/// </summary>
public string ShopName { get; set; }
/// <summary>
/// 类目ID
/// </summary>
public int CategoryId { get; set; }
/// <summary>
/// 销售数量
/// </summary>
public int SaleCount { get; set; }
/// <summary>
/// 库存数量
/// </summary>
public int StockCount { get; set; }
/// <summary>
/// 价格
/// </summary>
public decimal Price { get; set; }
/// <summary>
/// 以前价格 | 划线价格
/// </summary>
public decimal BeforePrice { get; set; }
/// <summary>
/// 邮费
/// </summary>
public decimal ExpressPrice { get; set; }
/// <summary>
/// 折扣
/// </summary>
public decimal Discount { get; set; }
/// <summary>
/// 折扣价格
/// </summary>
public decimal DiscountPrice { get; set; }
/// <summary>
/// 在线价格
/// </summary>
public decimal OnlinePrice { get; set; }
/// <summary>
/// 市场价格
/// </summary>
public decimal MarketPrice { get; set; }
/// <summary>
/// 主图
/// </summary>
public string MainImage { get; set; }
/// <summary>
/// 品牌
/// </summary>
public string ShopBrand { get; set; }
/// <summary>
/// 是否是促销品
/// </summary>
public bool IsPromotion { get; set; }
/// <summary>
/// 省
/// </summary>
public string State { get; set; }
/// <summary>
/// 市
/// </summary>
public string City { get; set; }
/// <summary>
/// 内容
/// </summary>
public ProductContent Content { get; set; } = new ProductContent("");
/// <summary>
/// 来源地址
/// </summary>
public virtual string SourceUrl { get; set; }
/// <summary>
/// 商品主图视频Id
/// </summary>
public long VideoId { get; set; }
/// <summary>
/// 重量
/// </summary>
public int Weight { get; set; }
/// <summary>
/// 商品特性
/// </summary>
public ProductPropertys Propertys { get; set; } = new ProductPropertys();
/// <summary>
/// SKU 属性值
/// </summary>
public SkuPropertys SkuProperty { get; set; } = new SkuPropertys();
/// <summary>
/// Sku 属性映射
/// </summary>
public SkuMaps SkuMaps { get; set; } = new SkuMaps();
/// <summary>
/// 主图列表
/// </summary>
public MainImageCollection MainImages { get; set; } = new MainImageCollection();
}