2026-06-01 17:59:23 +08:00
|
|
|
using SqlSugar;
|
2026-06-08 16:57:44 +08:00
|
|
|
using QYZH.InteractiveMagazine.Models.Enum;
|
2026-06-01 17:59:23 +08:00
|
|
|
|
|
|
|
|
namespace QYZH.InteractiveMagazine.Models.Entity
|
|
|
|
|
{
|
|
|
|
|
///<summary>
|
|
|
|
|
///虚拟商品表
|
|
|
|
|
///</summary>
|
|
|
|
|
[SugarTable("Product")]
|
2026-06-02 14:10:43 +08:00
|
|
|
public partial class Product : SqlSugarBaseEntity
|
2026-06-01 17:59:23 +08:00
|
|
|
{
|
|
|
|
|
public Product(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:商品名称
|
|
|
|
|
/// Default:
|
|
|
|
|
/// Nullable:False
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Name {get;set;}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:描述
|
|
|
|
|
/// Default:
|
|
|
|
|
/// Nullable:True
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Description {get;set;}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:商品图片
|
|
|
|
|
/// Default:
|
|
|
|
|
/// Nullable:True
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string ImageUrl {get;set;}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:所需积分
|
|
|
|
|
/// Default:
|
|
|
|
|
/// Nullable:False
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int Price {get;set;}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:商品类型: MakeUpCard, PetBg
|
|
|
|
|
/// Default:
|
|
|
|
|
/// Nullable:False
|
|
|
|
|
/// </summary>
|
2026-06-08 16:57:44 +08:00
|
|
|
public ProductTypeEnum Type {get;set;}
|
2026-06-01 17:59:23 +08:00
|
|
|
|
|
|
|
|
/// <summary>
|
2026-06-03 16:09:56 +08:00
|
|
|
/// Desc:售卖状态: OnSale, OffSale
|
2026-06-01 17:59:23 +08:00
|
|
|
/// Default:OnSale
|
|
|
|
|
/// Nullable:False
|
|
|
|
|
/// </summary>
|
2026-06-03 16:09:56 +08:00
|
|
|
[SugarColumn(ColumnName = "SaleStatus")]
|
|
|
|
|
public string SaleStatus {get;set;}
|
2026-06-01 17:59:23 +08:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:扩展数据
|
|
|
|
|
/// Default:
|
|
|
|
|
/// Nullable:True
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string MetaData {get;set;}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:是否上架
|
|
|
|
|
/// Default:b'1'
|
|
|
|
|
/// Nullable:False
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool IsActive {get;set;}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Desc:库存(-1无限)
|
|
|
|
|
/// Default:-1
|
|
|
|
|
/// Nullable:False
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int Stock {get;set;}
|
|
|
|
|
}
|
|
|
|
|
}
|