139 lines
3.0 KiB
C#
139 lines
3.0 KiB
C#
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
|
|
{
|
|
[Description("平台")]
|
|
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<int> CategoryPath { get; set; }
|
|
|
|
[Description("商铺Id")]
|
|
public int MallId { get; set; }
|
|
[Description("商铺Name")]
|
|
public string MallName { get; set; }
|
|
|
|
[Description("属性")]
|
|
public List<Property> Propertys { get; set; }
|
|
[Description("缩略图")]
|
|
public string ThumbUrl { get; set; }
|
|
[Description("主图")]
|
|
public List<string> MainImages { get; set; }
|
|
|
|
[Description("详情图")]
|
|
public List<string> DetailImages { get; set; }
|
|
[Description("视频")]
|
|
public List<string> Videos { get; set; }
|
|
|
|
[Description("规格")]
|
|
public List<SpecItem> Specs { get; set; }
|
|
|
|
[Description("价格与库存")]
|
|
public List<SkuItem> 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;
|
|
}
|
|
}
|
|
[Description("上架时间")]
|
|
public DateTime? ListingTime { get; set; }
|
|
}
|
|
/// <summary>
|
|
/// 属性
|
|
/// </summary>
|
|
public class Property
|
|
{
|
|
[Description("属性ID")]
|
|
public string Id { get; set; }
|
|
|
|
[Description("属性Key")]
|
|
public string Key { get; set; }
|
|
|
|
[Description("属性值")]
|
|
public string Value { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 规格
|
|
/// </summary>
|
|
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; }
|
|
}
|
|
/// <summary>
|
|
/// SKU
|
|
/// </summary>
|
|
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; }
|
|
}
|
|
|
|
|
|
|
|
}
|