feat: DTOs and interfaces

This commit is contained in:
2025-09-29 17:45:55 +03:00
parent eab5db823b
commit 459f77bcc7
13 changed files with 165 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
using GamificationService.Models.Database;
namespace GamificationService.Services.Interfaces;
public interface IRankService
{
Task<Rank?> GetRankByIdAsync(Guid rankId);
Task<Rank?> GetRankByTitleAsync(string title);
Task<IEnumerable<Rank>> GetAllRanksAsync();
Task<Rank> CreateRankAsync(Rank rank);
Task<Rank> UpdateRankAsync(Rank rank);
Task<bool> DeleteRankAsync(Guid rankId);
Task<bool> CanPlayerAdvanceToRankAsync(Guid playerId, Guid rankId);
Task<Rank?> GetNextRankAsync(Guid currentRankId);
}