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; }
///
/// 商品主图视频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();
}