using Newtonsoft.Json;
using OfficeOpenXml.Attributes;
using SqlSugar;
using System;
using System.Collections.Generic;
namespace ARW.Model.Vo.Api.Carts
{
///
/// 购物车记录展示对象Api
///
/// @author lwh
/// @date 2023-07-20
///
public class CartVoApi
{
///
/// 描述 : 店铺Id
///
[JsonConverter(typeof(ValueToStringConverter))]
public long StoreId { get; set; }
///
/// 描述 : 店铺名称
///
public string StoreName { get; set; }
///
/// 优惠券的商品列表
///
public List PromotionGoodsList { get; set; }
}
///
/// 购物车记录详情展示对象Api
///
public class PromotionGoods
{
///
/// 优惠券Id
///
public int PromotionId { get; set; }
///
/// 优惠券名称
///
public string Title { get; set; }
///
/// 优惠券编码
///
public string PromotionCode { get; set; } = "EMPTY_PROMOTION";
///
/// 优惠价类型
///
public string Tag { get; set; }
///
/// 优惠券介绍
///
public string Description { get; set; }
public List GoodsPromotionList { get; set; }
}
public class GoodsPromotion
{
///
/// 购物车商品Guid
///
public int CartId { get; set; }
///
/// 店铺Id
///
[JsonConverter(typeof(ValueToStringConverter))]
public long StoreId { get; set; }
///
/// 商品Id
///
[JsonConverter(typeof(ValueToStringConverter))]
public long SpuId { get; set; }
///
/// 商品SkuId
///
public int SkuId { get; set; }
///
/// 商品封面
///
public string Thumb { get; set; }
///
/// 商品名称
///
public string Title { get; set; }
///
/// 购物车商品数量
///
public int Quantity { get; set; }
///
/// 库存状态
///
public bool StockStatus { get; set; }
///
/// 库存总数
///
public int StockQuantity { get; set; }
///
/// 价格
///
public decimal Price { get; set; }
///
/// 划线价格
///
public decimal OriginPrice { get; set;}
///
/// 商品规格详情
///
public List SpecInfo { get; set; }
///
/// 购物车加入时间
///
public DateTime JoinCartTime { get; set; }
///
/// 是否选中
///
public bool IsSelected { get; set; }
}
public class SpecInfo
{
public string SpecTitle { get; set; }
public string SpecValue { get; set; }
}
}