using System; using System.Collections.Generic; using SqlSugar; using OfficeOpenXml.Attributes; using Newtonsoft.Json; namespace ARW.Model.Models.Business.Carts { /// /// 购物车记录,数据实体对象 /// /// @author lwh /// @date 2023-07-20 /// [SugarTable("tb_cart")] public class Cart : BusinessBase { /// /// 描述 : /// 空值 : false /// [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "cart_id")] public int CartId { get; set; } /// /// 描述 : /// 空值 : false /// [JsonConverter(typeof(ValueToStringConverter))] [SugarColumn(IsPrimaryKey = true, IsIdentity = false, ColumnName = "cart_guid")] public long CartGuid { get; set; } /// /// 描述 :客户Guid /// 空值 : false /// [JsonConverter(typeof(ValueToStringConverter))] [SugarColumn(ColumnName = "customer_guid")] public long CustomerGuid { get; set; } /// /// 描述 :店铺Guid /// 空值 : false /// [JsonConverter(typeof(ValueToStringConverter))] [SugarColumn(ColumnName = "shop_guid")] public long ShopGuid { get; set; } /// /// 描述 :商品Guid /// 空值 : false /// [SugarColumn(ColumnName = "goods_guid")] public long GoodsGuid { get; set; } /// /// 描述 :商品sku唯一标识 /// 空值 : false /// [SugarColumn(ColumnName = "goods_sku_id")] public int GoodsSkuId { get; set; } /// /// 描述 :商品数量 /// 空值 : false /// [SugarColumn(ColumnName = "cart_goods_num")] public int CartGoodsNum { get; set; } /// /// 描述 :是否选中 /// 空值 : false /// [SugarColumn(ColumnName = "is_selected")] public bool IsSelected { get; set; } } }