using NaiBa.Util.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Work.SearchSame
{
public class ProductInfo
{
///
/// 商品Id
///
public long ProductId { get; set; }
public string ProductUrl { get; set; }
///
/// 商品标题
///
public string ProductName { get; set; }
public long CategoryId { get; set; }
///
/// 主词
///
public string MainKeyword { get; set; }
///
/// 副词
///
public string ViceKeyword { get; set; }
///
/// 裂变标题
///
public string FissionProductName { get; set; }
public string ProductNamePrefix { get; set; }
///
/// 商品内容
///
public string ProductContent { get; set; }
///
/// 商品内容不包含图片
///
public string ProductContentWithOutImg { get; set; }
///
/// 评分
///
public decimal Rate { get; set; }
///
/// 评论数
///
public int CommentCount { get; set; }
public decimal Coupon { get; set; }
public int PromotionRate { get; set; }
///
/// 销售数量
///
public int SaleCount { get; set; }
public decimal FissionPrice { get; set; }
public decimal MinPrice { get; set; }
public decimal MaxPrice { get; set; }
///
/// 返还
///
public decimal Rebate { get; set; }
///
/// 创建时间
///
public DateTime CreateTime { get; set; }
///
/// 创建人
///
public string Creator { get; set; }
///
/// 商品来源平台
///
public int Platform { get; set; }
///
/// 默认图片(存储格式的键为本地路径,值为线上路径)
///
public List DefaultImageList { get; set; }
///
/// 规格
///
public List SpecList { get; set; }
///
/// Sku属性
///
public List SkuPropertyList { get; set; }
///
/// Sku值
///
public List SkuList { get; set; }
///
/// 是否加价
///
public int AddPrice { get; set; }
///
/// 加价比例
///
public int AddPricePercent { get; set; }
///
/// 基础加价
///
public decimal AddPriceBaseValue { get; set; }
///
/// 是否包邮
///
public int PostFree { get; set; }
// public ShopInfox ShopInfo { get; set; }
public string MainProductImageUrl { get; set; }
public byte[] MainProductImage { get; set; }
public string SellPoint { get; set; }
public bool IsCatched { get; set; }
#region 显示列表时服务端根据场景需求返回的数据,不需要与本地数据库字段对应
///
/// sku数
///
public int SkuCount { get; set; }
///
/// 分词标题数
///
public int FissionCount { get; set; }
///
/// 分组名称
///
public string CollectGroupName { get; set; }
#endregion
}
public class SpecInfo
{
public long NameId { get; set; }
public string Name { get; set; }
public long ValueId { get; set; }
public string Value { get; set; }
}
public class SkuPropertyInfo
{
public long PropertyId { get; set; }
public string PropertyName { get; set; }
public List DetailList { get; set; }
}
public class SkuPropertyDetailInfo
{
public long ValueId { get; set; }
public string ValueName { get; set; }
///
/// 图片(存储格式的键为本地路径,值为线上路径)
///
public KeyValue Image { get; set; }
}
public class SkuInfo
{
public long SkuId { get; set; }
public string SkuName { get; set; }
public decimal Price { get; set; }
public string SkuAttr { get; set; }
}
}