1. 新增依赖注入生命周期标记接口、基础仓储与管理员仓储实现 2. 新增管理员认证与用户服务接口,补充认证相关DTO 3. 重构实体审计字段命名,统一Created/UpdatedAt规范 4. 新增大量业务实体类与API版本枚举配置 5. 集成Autofac依赖注入、JWT自动刷新与跨域配置 6. 替换原有微信小程序与旧认证服务为后台管理系统架构 7. 完善Swagger文档配置与项目基础部署配置
65 lines
1.6 KiB
C#
65 lines
1.6 KiB
C#
using SqlSugar;
|
|
|
|
namespace QYZH.InteractiveMagazine.Models.Entity
|
|
{
|
|
///<summary>
|
|
///宠物实例表
|
|
///</summary>
|
|
[SugarTable("Pet")]
|
|
public partial class Pet : BaseEntity
|
|
{
|
|
public Pet(){
|
|
|
|
|
|
}
|
|
/// <summary>
|
|
/// Desc:用户Id
|
|
/// Default:
|
|
/// Nullable:False
|
|
/// </summary>
|
|
public long UserId {get;set;}
|
|
|
|
/// <summary>
|
|
/// Desc:宠物昵称
|
|
/// Default:
|
|
/// Nullable:True
|
|
/// </summary>
|
|
public string Name {get;set;}
|
|
|
|
/// <summary>
|
|
/// Desc:当前进化形态Id
|
|
/// Default:
|
|
/// Nullable:False
|
|
/// </summary>
|
|
public int CurrentEvolutionId {get;set;}
|
|
|
|
/// <summary>
|
|
/// Desc:当前成长值
|
|
/// Default:0
|
|
/// Nullable:False
|
|
/// </summary>
|
|
public int GrowthPoints {get;set;}
|
|
|
|
/// <summary>
|
|
/// Desc:累计喂养次数
|
|
/// Default:0
|
|
/// Nullable:False
|
|
/// </summary>
|
|
public int FeedingCount {get;set;}
|
|
|
|
/// <summary>
|
|
/// Desc:宠物类型
|
|
/// Default:Normal
|
|
/// Nullable:False
|
|
/// </summary>
|
|
public string Type {get;set;}
|
|
|
|
/// <summary>
|
|
/// Desc:状态: Active, Sleeping
|
|
/// Default:Active
|
|
/// Nullable:False
|
|
/// </summary>
|
|
public string Status {get;set;}
|
|
}
|
|
}
|