811b6ef51a
Backend CI / build-and-test (push) Successful in 52s
Frontend CI / build-and-check (push) Failing after 5m15s
🚀 Create and publish a Docker image / Detect changes in backend and frontend (push) Successful in 16s
🚀 Create and publish a Docker image / Build & publish backend image (push) Successful in 1m0s
🚀 Create and publish a Docker image / Build & publish frontend image (push) Successful in 32s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Successful in 13s
18 lines
742 B
C#
18 lines
742 B
C#
using UniVerse.Application.DTOs.Achievements;
|
|
using UniVerse.Application.DTOs.Common;
|
|
using UniVerse.Application.DTOs.Gamification;
|
|
using UniVerse.Domain.Enums;
|
|
|
|
namespace UniVerse.Application.Interfaces;
|
|
|
|
public interface IGamificationService
|
|
{
|
|
Task AwardCoinsAsync(int userId, int amount, CoinTransactionType type,
|
|
int? reviewId = null, int? achievementId = null, string? description = null);
|
|
Task CheckAndAwardAchievementsAsync(int userId);
|
|
Task<int> CalculateLevelAsync(int xp);
|
|
Task<LevelProgressDto> GetLevelProgressAsync(int xp);
|
|
Task<List<UserAchievementDto>> GetUserAchievementsAsync(int userId);
|
|
Task<PagedResult<CoinTransactionDto>> GetTransactionsAsync(int userId, PaginationRequest pagination);
|
|
}
|