- 新增30+业务枚举类型覆盖用户、宠物、商城、社区、积分等模块 - 完成实体类、DTO、服务层的字符串枚举替换为强类型枚举 - 修复用户状态枚举名称变更,将Frozen改为Disabled - 新增批量发布社区消息接口与控制器实现 - 新增操作日志、积分管理、补偿任务相关服务与DTO
80 lines
2.0 KiB
C#
80 lines
2.0 KiB
C#
using QYZH.InteractiveMagazine.Models.Enum;
|
|
|
|
namespace QYZH.InteractiveMagazine.Models.Dto.Pet;
|
|
|
|
/// <summary>
|
|
/// 宠物模板创建/更新输入
|
|
/// </summary>
|
|
public class PetTemplateInput
|
|
{
|
|
/// <summary>
|
|
/// 模板名称
|
|
/// </summary>
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 模板描述
|
|
/// </summary>
|
|
public string? Description { get; set; }
|
|
|
|
/// <summary>
|
|
/// 默认初始进化形态Id
|
|
/// </summary>
|
|
public long DefaultEvolutionId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 模板图标地址
|
|
/// </summary>
|
|
public string? IconUrl { get; set; }
|
|
|
|
/// <summary>
|
|
/// 排序权重
|
|
/// </summary>
|
|
public int SortOrder { get; set; }
|
|
|
|
/// <summary>
|
|
/// 模板类型: Normal, Special, Limited
|
|
/// </summary>
|
|
public string Type { get; set; } = PetTemplateTypeEnum.Normal.ToString();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 宠物模板输出
|
|
/// </summary>
|
|
public class PetTemplateOutput
|
|
{
|
|
public long Id { get; set; }
|
|
public string Name { get; set; } = string.Empty;
|
|
public string? Description { get; set; }
|
|
public long DefaultEvolutionId { get; set; }
|
|
public string? IconUrl { get; set; }
|
|
public int SortOrder { get; set; }
|
|
public string Type { get; set; } = string.Empty;
|
|
public string Status { get; set; } = string.Empty;
|
|
public string? CreatedBy { get; set; }
|
|
public DateTime CreatedAt { get; set; }
|
|
public string? UpdatedBy { get; set; }
|
|
public DateTime? UpdatedAt { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 宠物模板分页查询输入
|
|
/// </summary>
|
|
public class PetTemplateQueryInput : PageQueryModel
|
|
{
|
|
/// <summary>
|
|
/// 模板名称(模糊搜索)
|
|
/// </summary>
|
|
public string? Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// 模板类型: Normal, Special, Limited
|
|
/// </summary>
|
|
public string? Type { get; set; }
|
|
|
|
/// <summary>
|
|
/// 状态: Active, Inactive
|
|
/// </summary>
|
|
public string? Status { get; set; }
|
|
}
|