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,14 @@
using GamificationService.Models.Database;
namespace GamificationService.Services.Interfaces;
public interface IPlayerService
{
Task<Player?> GetPlayerByUserIdAsync(string userId);
Task<Player> CreatePlayerAsync(string userId, string username);
Task<Player> UpdatePlayerRankAsync(Guid playerId, Guid newRankId);
Task<Player> AddPlayerExperienceAsync(Guid playerId, int experience);
Task<Player> AddPlayerManaAsync(Guid playerId, int mana);
Task<IEnumerable<Player>> GetTopPlayersAsync(int topCount, TimeSpan timeFrame);
Task<Player> GetPlayerWithProgressAsync(Guid playerId);
}