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; }
|
||
|
|
}
|