feat: Implement Commission and Network Statistics Pages with DTOs and Services
- Added CommissionDashboardPage and CommissionHistoryPage for displaying commission payouts and history. - Implemented WeeklyBalancePage to show weekly balance details. - Created NetworkStatisticsPage to display network statistics and tree structure. - Developed corresponding services (CommissionService, NetworkMembershipService) for data retrieval. - Introduced DTOs for Commission and Network data structures (CommissionPayoutDto, WeeklyBalanceDto, NetworkStatisticsDto). - Added mock data generation for testing purposes in services. - Enhanced UI with MudBlazor components for better user experience.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
namespace FrontOffice.Main.Utilities;
|
||||
|
||||
/// <summary>
|
||||
/// DTO for Club Membership information
|
||||
/// </summary>
|
||||
public class ClubMembershipDto
|
||||
{
|
||||
public long UserId { get; set; }
|
||||
public bool IsActive { get; set; }
|
||||
public string Status { get; set; } = string.Empty;
|
||||
public int? DaysRemaining { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// DTO for Club Membership activation response
|
||||
/// </summary>
|
||||
public class ClubActivationResponseDto
|
||||
{
|
||||
public bool Success { get; set; }
|
||||
public string? Message { get; set; }
|
||||
public DateTime? ActivationDate { get; set; }
|
||||
public long AmountPaid { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user