feat: Fixed errors
This commit is contained in:
10
LctMonolith/Services/Contracts/IAnalyticsService.cs
Normal file
10
LctMonolith/Services/Contracts/IAnalyticsService.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using LctMonolith.Services.Models;
|
||||
|
||||
using LctMonolith.Services.Models;
|
||||
|
||||
namespace LctMonolith.Services;
|
||||
|
||||
public interface IAnalyticsService
|
||||
{
|
||||
Task<AnalyticsSummary> GetSummaryAsync(CancellationToken ct = default);
|
||||
}
|
||||
15
LctMonolith/Services/Contracts/IGamificationService.cs
Normal file
15
LctMonolith/Services/Contracts/IGamificationService.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using LctMonolith.Models;
|
||||
using LctMonolith.Services.Models;
|
||||
|
||||
namespace LctMonolith.Services.Contracts;
|
||||
|
||||
/// <summary>Gamification progression logic (progress, rewards, rank evaluation).</summary>
|
||||
public interface IGamificationService
|
||||
{
|
||||
/// <summary>Get current user progression snapshot (xp, mana, next rank requirements).</summary>
|
||||
Task<ProgressSnapshot> GetProgressAsync(Guid userId, CancellationToken ct = default);
|
||||
/// <summary>Apply mission completion rewards (xp, mana, skills, artifacts) to user.</summary>
|
||||
Task ApplyMissionCompletionAsync(Guid userId, Mission mission, CancellationToken ct = default);
|
||||
/// <summary>Re-evaluate and apply rank upgrade if requirements are met.</summary>
|
||||
Task EvaluateRankUpgradeAsync(Guid userId, CancellationToken ct = default);
|
||||
}
|
||||
9
LctMonolith/Services/Contracts/IInventoryService.cs
Normal file
9
LctMonolith/Services/Contracts/IInventoryService.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using LctMonolith.Models;
|
||||
|
||||
namespace LctMonolith.Services.Contracts;
|
||||
|
||||
public interface IInventoryService
|
||||
{
|
||||
Task<IEnumerable<UserInventoryItem>> GetStoreInventoryAsync(Guid userId, CancellationToken ct = default);
|
||||
Task<IEnumerable<UserArtifact>> GetArtifactsAsync(Guid userId, CancellationToken ct = default);
|
||||
}
|
||||
11
LctMonolith/Services/Contracts/IMissionService.cs
Normal file
11
LctMonolith/Services/Contracts/IMissionService.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using LctMonolith.Models;
|
||||
using LctMonolith.Services.Models;
|
||||
|
||||
namespace LctMonolith.Services.Contracts;
|
||||
|
||||
public interface IMissionService
|
||||
{
|
||||
Task<Mission> CreateMissionAsync(CreateMissionModel model, CancellationToken ct = default);
|
||||
Task<IEnumerable<Mission>> GetAvailableMissionsAsync(Guid userId, CancellationToken ct = default);
|
||||
Task<UserMission> UpdateStatusAsync(Guid userId, Guid missionId, MissionStatus status, string? submissionData, CancellationToken ct = default);
|
||||
}
|
||||
12
LctMonolith/Services/Contracts/INotificationService.cs
Normal file
12
LctMonolith/Services/Contracts/INotificationService.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using LctMonolith.Models;
|
||||
|
||||
namespace LctMonolith.Services.Contracts;
|
||||
|
||||
public interface INotificationService
|
||||
{
|
||||
Task<Notification> CreateAsync(Guid userId, string type, string title, string message, CancellationToken ct = default);
|
||||
Task<IEnumerable<Notification>> GetUnreadAsync(Guid userId, CancellationToken ct = default);
|
||||
Task<IEnumerable<Notification>> GetAllAsync(Guid userId, int take = 100, CancellationToken ct = default);
|
||||
Task MarkReadAsync(Guid userId, Guid notificationId, CancellationToken ct = default);
|
||||
Task<int> MarkAllReadAsync(Guid userId, CancellationToken ct = default);
|
||||
}
|
||||
9
LctMonolith/Services/Contracts/IStoreService.cs
Normal file
9
LctMonolith/Services/Contracts/IStoreService.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using LctMonolith.Models;
|
||||
|
||||
namespace LctMonolith.Services.Contracts;
|
||||
|
||||
public interface IStoreService
|
||||
{
|
||||
Task<IEnumerable<StoreItem>> GetActiveItemsAsync(CancellationToken ct = default);
|
||||
Task<UserInventoryItem> PurchaseAsync(Guid userId, Guid itemId, int quantity, CancellationToken ct = default);
|
||||
}
|
||||
11
LctMonolith/Services/Contracts/ITokenService.cs
Normal file
11
LctMonolith/Services/Contracts/ITokenService.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using LctMonolith.Models;
|
||||
using LctMonolith.Services.Models;
|
||||
|
||||
namespace LctMonolith.Services.Contracts;
|
||||
|
||||
public interface ITokenService
|
||||
{
|
||||
Task<TokenPair> IssueAsync(AppUser user, CancellationToken ct = default);
|
||||
Task<TokenPair> RefreshAsync(string refreshToken, CancellationToken ct = default);
|
||||
Task RevokeAsync(string refreshToken, CancellationToken ct = default);
|
||||
}
|
||||
Reference in New Issue
Block a user