feat: 完成基础接口搭建
This commit is contained in:
@@ -1,8 +1,47 @@
|
||||
using Volo.Abp.Application.Dtos;
|
||||
using Yi.Framework.DigitalCollectibles.Domain.Shared.Consts;
|
||||
|
||||
namespace Yi.Framework.DigitalCollectibles.Application.Contracts.Dtos.Market;
|
||||
|
||||
public class MarketGetListOutputDto:EntityDto<Guid>
|
||||
{
|
||||
/// <summary>
|
||||
/// 藏品编号
|
||||
/// </summary>
|
||||
public string Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 藏品名称
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 藏品描述
|
||||
/// </summary>
|
||||
public string? Describe { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 价值数
|
||||
/// </summary>
|
||||
public decimal ValueNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 藏品地址
|
||||
/// </summary>
|
||||
public string Url { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 稀有度
|
||||
/// </summary>
|
||||
public RarityEnum Rarity{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 总共出现次数
|
||||
/// </summary>
|
||||
public int FindTotal { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
public int OrderNum { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
namespace Yi.Framework.DigitalCollectibles.Application.Contracts.Dtos.MiningPool;
|
||||
|
||||
public class MiningPoolGetOutput
|
||||
{
|
||||
/// <summary>
|
||||
/// 普通藏品剩余数量
|
||||
/// </summary>
|
||||
public int I0_OrdinaryNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 高级藏品剩余数量
|
||||
/// </summary>
|
||||
public int I1_SeniorNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 稀有藏品剩余数量
|
||||
/// </summary>
|
||||
public int I2_RareNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 珍品藏品剩余数量
|
||||
/// </summary>
|
||||
public int I3_GemNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 传说藏品剩余数量
|
||||
/// </summary>
|
||||
public int I4_LegendNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开始时间
|
||||
/// </summary>
|
||||
public DateTime StartTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 结束时间
|
||||
/// </summary>
|
||||
public DateTime EndTime{ get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 总共剩余藏品数量
|
||||
/// </summary>
|
||||
public int TotalNumber => I0_OrdinaryNumber + I1_SeniorNumber + I2_RareNumber + I3_GemNumber + I4_LegendNumber;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using Yi.Framework.DigitalCollectibles.Application.Contracts.Dtos.Collectibles;
|
||||
using Yi.Framework.DigitalCollectibles.Domain.Shared.Enums;
|
||||
|
||||
namespace Yi.Framework.DigitalCollectibles.Application.Contracts.Dtos.MiningPool;
|
||||
|
||||
public class MiningResultOutput
|
||||
{
|
||||
public MiningResultEnum Result { get; set; }
|
||||
|
||||
public CollectiblesUserGetOutputDto? Collectibles { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user