using Newtonsoft.Json; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data.SqlTypes; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace AllBase.Model.Result.PDDResult { public class PDDFrontProductInfo5 { public PlatformType Platform { get; set; } [Description("商品编号")] public long GoodsId { get; set; } [Description("商品链接")] public string GoodsUrl { get; set; } [Description("品牌Id")] public long BrandId { get; set; } [Description("标题")] public string Title { get; set; } [Description("描述")] public string Description { get; set; } [Description("视频链接")] public string VideoUrl { get; set; } [Description("类目")] public int CategoryId { get; set; } [Description("所有类目")] public List CategoryPath { get; set; } [Description("商铺Id")] public int MallId { get; set; } [Description("商铺Name")] public string MallName { get; set; } [Description("属性")] public List Propertys { get; set; } [Description("缩略图")] public string ThumbUrl { get; set; } [Description("主图")] public List MainImages { get; set; } [Description("详情图")] public List DetailImages { get; set; } [Description("视频")] public List Videos { get; set; } [Description("规格")] public List Specs { get; set; } [Description("价格与库存")] public List Skus { get; set; } [Description("价格")] public decimal Price { get; set; } [Description("最低价")] public decimal MinPrice { get { return Skus?.Min(a => a.Price) ?? 0; } } [Description("最高价")] public decimal MaxPrice { get { return Skus?.Max(a => a.Price) ?? 0; } } } /// /// 属性 /// public class Property { [Description("属性ID")] public string Id { get; set; } [Description("属性Key")] public string Key { get; set; } [Description("属性值")] public string Value { get; set; } } /// /// 规格 /// public class SpecItem { [Description("规格KeyID")] public long SpecKeyId { get; set; } [Description("规格键名")] public string SpecKey { get; set; } [Description("规格值")] public string SpecValue { get; set; } [Description("规格值Id")] public long SpecValueId { get; set; } } /// /// SKU /// public class SkuItem { [Description("SKU编码")] public string SkuId { get; set; } [Description("规格值组合")] public string Spec { get; set; } [Description("价格")] public decimal Price { get; set; } [Description("原价")] public string OriginalPrice { get; set; } [Description("库存")] public int Stock { get; set; } [Description("规格图")] public string SpecImage { get; set; } } }