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; /// /// 商品属性基类 /// public class ProductBase { private string _gid = Guid.NewGuid().ToString(); /// /// 唯一ID /// public string Gid { get { return _gid; } } /// /// 商品ID /// public long Id { get; set; } /// /// 标题 /// public string Title { get; set; } /// /// 商铺名称 /// public string ShopName { get; set; } /// /// 类目ID /// public int CategoryId { get; set; } /// /// 销售数量 /// public int SaleCount { get; set; } /// /// 库存数量 /// public int StockCount { get; set; } /// /// 价格 /// public decimal Price { get; set; } /// /// 以前价格 | 划线价格 /// public decimal BeforePrice { get; set; } /// /// 邮费 /// public decimal ExpressPrice { get; set; } /// /// 折扣 /// public decimal Discount { get; set; } /// /// 折扣价格 /// public decimal DiscountPrice { get; set; } /// /// 在线价格 /// public decimal OnlinePrice { get; set; } /// /// 市场价格 /// public decimal MarketPrice { get; set; } /// /// 主图 /// public string MainImage { get; set; } /// /// 品牌 /// public string ShopBrand { get; set; } /// /// 是否是促销品 /// public bool IsPromotion { get; set; } /// /// 省 /// public string State { get; set; } /// /// 市 /// public string City { get; set; } /// /// 内容 /// public ProductContent Content { get; set; } = new ProductContent(""); /// /// 来源地址 /// public virtual string SourceUrl { get; set; } /// /// 来源平台 /// public string SourcePlatform { get; set; } /// /// 商品主图视频Id /// public long VideoId { get; set; } /// /// 重量 /// public int Weight { get; set; } /// /// 商品特性 /// public ProductPropertys Propertys { get; set; } = new ProductPropertys(); /// /// SKU 属性值 /// public SkuPropertys SkuProperty { get; set; } = new SkuPropertys(); /// /// Sku 属性映射 /// public SkuMaps SkuMaps { get; set; } = new SkuMaps(); /// /// 主图列表 /// public MainImageCollection MainImages { get; set; } = new MainImageCollection(); #region 由 KJDDBProduct 迁移新增的属性 /// /// 新增:来源店铺ID。 /// public string FromShopId { get; set; } /// /// 新增:商品SPU ID。 /// public string SpuId { get; set; } /// /// 新增:SKC ID;聚水潭为商家coid。 /// public string SkcId { get; set; } /// /// 新增:聚水潭爆款专区真实商家coid;供应商直采商品为空。 /// public string RealCoid { get; set; } /// /// 新增:外部商品编号。 /// public string ExtCode { get; set; } /// /// 新增:加密商品ID,对应聚水潭加密商品编号goodsId。 /// public string SecretSpuId { get; set; } /// /// 新增:来源商品JSON。 /// public string ProductJson { get; set; } /// /// 新增:SKU编辑后的JSON。 /// public string SkuEditJson { get; set; } /// /// 新增:SKU密钥JSON。 /// public string SkuSecretJson { get; set; } /// /// 新增:商品来源类型名称。 /// public string ProductGetTypeText { get; set; } /// /// 新增:数据库类型。 /// public string DbType { get; set; } /// /// 新增:特殊商品类型。 /// public string SpecialProdType { get; set; } /// /// 新增:价格文本。 /// public string PriceText { get; set; } /// /// 新增:主类目名称。 /// public string MainCatName { get; set; } /// /// 新增:添加用户名。 /// public string AddUserName { get; set; } /// /// 新增:是否发送到外部服务。 /// public int? SendToOutServer { get; set; } /// /// 新增:分销设置。 /// public int? DistributionSet { get; set; } #endregion }