Files
QYZH.InteractiveMagazine/QYZH.InteractiveMagazine.Models/Entity/PetTemplate.cs
glz 0126c6b097 refactor: 完善枚举系统与状态类型转换,新增枚举管理接口
1. 为所有枚举添加Description特性用于中文描述
2. 移除实体类中冗余的状态字段注释与定义
3. 将所有枚举状态参数改为int类型转换,统一数据交互格式
4. 新增系统管理枚举查询接口与实现,支持获取所有枚举元数据
5. 调整宠物服务模板状态更新接口参数类型
2026-06-08 17:54:36 +08:00

58 lines
1.4 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using SqlSugar;
using QYZH.InteractiveMagazine.Models.Enum;
namespace QYZH.InteractiveMagazine.Models.Entity
{
/// <summary>
/// 宠物模板表(定义不同宠物种类,支持后期多宠物扩展)
/// </summary>
[SugarTable("PetTemplate")]
public partial class PetTemplate : SqlSugarBaseEntity
{
public PetTemplate() { }
/// <summary>
/// Desc:模板名称
/// Default:
/// Nullable:False
/// </summary>
public string Name { get; set; }
/// <summary>
/// Desc:模板描述
/// Default:
/// Nullable:True
/// </summary>
public string Description { get; set; }
/// <summary>
/// Desc:默认初始进化形态Id关联PetEvolution.Id
/// Default:
/// Nullable:False
/// </summary>
public long DefaultEvolutionId { get; set; }
/// <summary>
/// Desc:模板图标地址
/// Default:
/// Nullable:True
/// </summary>
public string IconUrl { get; set; }
/// <summary>
/// Desc:排序权重
/// Default:0
/// Nullable:False
/// </summary>
public int SortOrder { get; set; }
/// <summary>
/// Desc:模板类型: Normal, Special, Limited
/// Default:Normal
/// Nullable:False
/// </summary>
public PetTemplateTypeEnum Type { get; set; }
}
}