feat: DTOs and interfaces
This commit is contained in:
15
Services/Interfaces/IRankService.cs
Normal file
15
Services/Interfaces/IRankService.cs
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user