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