namespace QYZH.InteractiveMagazine.Models.Dto.Pet; /// /// 宠物信息输出 /// public class PetOutput { /// /// 主键ID /// public long Id { get; set; } /// /// 用户Id /// public long UserId { get; set; } /// /// 宠物昵称 /// public string? Name { get; set; } /// /// 当前进化形态Id /// public int CurrentEvolutionId { get; set; } /// /// 当前成长值 /// public int GrowthPoints { get; set; } /// /// 累计喂养次数 /// public int FeedingCount { get; set; } /// /// 宠物类型: Normal /// public string Type { get; set; } = string.Empty; /// /// 状态: Inactive, Active, Sleeping /// public string Status { get; set; } = string.Empty; /// /// 创建时间 /// public DateTime CreatedAt { get; set; } } /// /// 喂养宠物输入 /// public class FeedPetInput { /// /// 宠物Id /// public long PetId { get; set; } /// /// 增加的成长值 /// public int GrowthPoints { get; set; } } /// /// 喂养宠物输出 /// public class FeedPetOutput { /// /// 宠物Id /// public long PetId { get; set; } /// /// 喂养前成长值 /// public int GrowthBefore { get; set; } /// /// 喂养后成长值 /// public int GrowthAfter { get; set; } /// /// 本次成长变化量 /// public int GrowthChange { get; set; } /// /// 是否触发进化 /// public bool HasEvolved { get; set; } /// /// 进化后的阶段名称(未进化则为空) /// public string? EvolvedStageName { get; set; } } /// /// 喂养记录输出 /// public class FeedingRecordOutput { /// /// 记录Id /// public long Id { get; set; } /// /// 宠物Id /// public long PetId { get; set; } /// /// 用户Id /// public long UserId { get; set; } /// /// 成长值变化量 /// public int GrowthChange { get; set; } /// /// 喂养前成长值 /// public int GrowthBefore { get; set; } /// /// 喂养后成长值 /// public int GrowthAfter { get; set; } /// /// 喂养类型: Normal, Special /// public string Type { get; set; } = string.Empty; /// /// 状态 /// public string Status { get; set; } = string.Empty; /// /// 创建时间 /// public DateTime CreatedAt { get; set; } }