feat: 完成积分、价值排行榜

This commit is contained in:
chenchun
2024-11-13 19:01:23 +08:00
parent f9217dc066
commit bf2bcd1395
14 changed files with 358 additions and 16 deletions

View File

@@ -0,0 +1,9 @@
namespace Yi.Framework.DigitalCollectibles.Application.Contracts.Dtos.Analyse;
public class DcPointsTopUserDto
{
public Guid UserId { get; set; }
public int Points { get; set; }
public int Order { get; set; }
}

View File

@@ -0,0 +1,9 @@
namespace Yi.Framework.DigitalCollectibles.Application.Contracts.Dtos.Analyse;
public class DcValueTopUserDto
{
public Guid UserId { get; set; }
public decimal Value { get; set; }
public int Order { get; set; }
}

View File

@@ -0,0 +1,16 @@
using Microsoft.AspNetCore.Mvc;
using Volo.Abp.Application.Dtos;
using Yi.Framework.DigitalCollectibles.Application.Contracts.Dtos.Analyse;
namespace Yi.Framework.DigitalCollectibles.Application.Contracts.IServices;
public interface IPointAnalyseService
{
/// <summary>
/// 积分排行榜
/// </summary>
/// <returns></returns>
// [HttpGet("analyse/dc-user/points-top/{userId?}")]
Task<PagedResultDto<DcPointsTopUserDto>> GetValueTopAsync([FromQuery] PagedResultRequestDto input,
[FromRoute] Guid? userId);
}

View File

@@ -0,0 +1,16 @@
using Microsoft.AspNetCore.Mvc;
using Volo.Abp.Application.Dtos;
using Yi.Framework.DigitalCollectibles.Application.Contracts.Dtos.Analyse;
namespace Yi.Framework.DigitalCollectibles.Application.Contracts.IServices;
public interface IValueAnalyseService
{
/// <summary>
/// 价值排行榜
/// </summary>
/// <returns></returns>
// [HttpGet("analyse/dc-user/value-top/{userId?}")]
Task<PagedResultDto<DcValueTopUserDto>> GetValueTopAsync([FromQuery] PagedResultRequestDto input,
[FromRoute] Guid? userId);
}

View File

@@ -7,8 +7,4 @@
<ProjectReference Include="..\..\rbac\Yi.Framework.Rbac.Application.Contracts\Yi.Framework.Rbac.Application.Contracts.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="IServices\" />
</ItemGroup>
</Project>