文字游戏
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

46 lines
939 B

using SqlSugar;
using System.ComponentModel;
namespace Build_God_Api.DB
{
/// <summary>
/// 背包物品表
/// </summary>
public class BagItem : BaseEntity
{
/// <summary>
/// 角色背包关联ID
/// </summary>
public int CharacterBagId { get; set; }
/// <summary>
/// 物品类型
/// </summary>
public BagItemType ItemType { get; set; }
/// <summary>
/// 物品ID (装备ID或丹药ID)
/// </summary>
public int ItemId { get; set; }
/// <summary>
/// 数量
/// </summary>
public int Quantity { get; set; }
}
/// <summary>
/// 背包物品类型枚举
/// </summary>
public enum BagItemType
{
[Description("装备")]
Equipment = 1,
[Description("丹药")]
Pill = 2,
[Description("垃圾")]
Scrap = 3
}
}