refactor: 完善枚举系统与状态类型转换,新增枚举管理接口
1. 为所有枚举添加Description特性用于中文描述 2. 移除实体类中冗余的状态字段注释与定义 3. 将所有枚举状态参数改为int类型转换,统一数据交互格式 4. 新增系统管理枚举查询接口与实现,支持获取所有枚举元数据 5. 调整宠物服务模板状态更新接口参数类型
This commit is contained in:
@ -75,7 +75,7 @@ public interface IPetService : IBaseService<UserPet>
|
||||
/// <summary>
|
||||
/// 更新模板状态(启用/禁用)
|
||||
/// </summary>
|
||||
Task UpdateTemplateStatusAsync(long id, string status);
|
||||
Task UpdateTemplateStatusAsync(long id, int status);
|
||||
|
||||
// ==================== 后台管理:进化链 ====================
|
||||
|
||||
|
||||
@ -0,0 +1,15 @@
|
||||
using QYZH.InteractiveMagazine.Models.Dto.SystemManagement;
|
||||
|
||||
namespace QYZH.InteractiveMagazine.IService;
|
||||
|
||||
/// <summary>
|
||||
/// 系统管理服务接口
|
||||
/// </summary>
|
||||
public interface ISystemManagementService
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取所有枚举信息
|
||||
/// </summary>
|
||||
/// <returns>枚举信息列表</returns>
|
||||
Task<List<EnumInfoOutput>> GetAllEnumsAsync();
|
||||
}
|
||||
Reference in New Issue
Block a user