- 替换原有自定义生命周期接口为通用基础服务体系 - 将所有实体基类替换为带雪花ID的SqlSugarBaseEntity - 迁移DTO到Models项目并统一管理 - 移除冗余的Repository层实现,改用通用基础服务 - 添加Yitter.IdGenerator雪花ID生成支持 - 重构SqlSugar数据库上下文与依赖注入配置 - 新增微信用户、用户勋章、背包等实体与配套服务 - 整理分页查询与结果封装类 - 优化WebApi控制器结构
65 lines
1.6 KiB
C#
65 lines
1.6 KiB
C#
using SqlSugar;
|
|
|
|
namespace QYZH.InteractiveMagazine.Models.Entity
|
|
{
|
|
///<summary>
|
|
///用户背包表
|
|
///</summary>
|
|
[SugarTable("WxUserBag")]
|
|
public partial class WxUserBag : SqlSugarBaseEntity
|
|
{
|
|
public WxUserBag(){
|
|
|
|
|
|
}
|
|
/// <summary>
|
|
/// Desc:用户Id
|
|
/// Default:
|
|
/// Nullable:False
|
|
/// </summary>
|
|
public long UserId {get;set;}
|
|
|
|
/// <summary>
|
|
/// Desc:物品类型: MakeUpCard, PetBg
|
|
/// Default:
|
|
/// Nullable:False
|
|
/// </summary>
|
|
public string ItemType {get;set;}
|
|
|
|
/// <summary>
|
|
/// Desc:关联商品Id或资源Id
|
|
/// Default:
|
|
/// Nullable:False
|
|
/// </summary>
|
|
public int ItemId {get;set;}
|
|
|
|
/// <summary>
|
|
/// Desc:数量
|
|
/// Default:1
|
|
/// Nullable:False
|
|
/// </summary>
|
|
public int Quantity {get;set;}
|
|
|
|
/// <summary>
|
|
/// Desc:扩展信息
|
|
/// Default:
|
|
/// Nullable:True
|
|
/// </summary>
|
|
public string MetaData {get;set;}
|
|
|
|
/// <summary>
|
|
/// Desc:背包物品分类
|
|
/// Default:
|
|
/// Nullable:True
|
|
/// </summary>
|
|
public string Type {get;set;}
|
|
|
|
/// <summary>
|
|
/// Desc:状态: Available, Expired
|
|
/// Default:Available
|
|
/// Nullable:False
|
|
/// </summary>
|
|
public string Status {get;set;}
|
|
}
|
|
}
|