Add an interface for the stats repo

This commit is contained in:
2026-01-23 15:03:38 +01:00
parent 111e3f2ef7
commit 387228a3cf
11 changed files with 23 additions and 10 deletions

View File

@@ -0,0 +1,13 @@
using skydiveLogs_api.Domain;
namespace skydiveLogs_api.DomainService.Repositories
{
public interface IStatsRepository<T> : IRepository<T>
{
#region Public Methods
T GetAll(User user);
#endregion Public Methods
}
}

View File

@@ -6,7 +6,7 @@ using System.Collections.Generic;
namespace skydiveLogs_api.Infrastructure
{
public class StatsByAircraftRepository : IStatsByAircraftRepository
public class StatsByAircraftRepository : IStatsRepository<StatsByAircraft>
{
#region Public Constructors

View File

@@ -6,7 +6,7 @@ using System.Collections.Generic;
namespace skydiveLogs_api.Infrastructure
{
public class StatsByDzRepository : IStatsByDzRepository
public class StatsByDzRepository : IStatsRepository<StatsByDz>
{
#region Public Constructors

View File

@@ -6,7 +6,7 @@ using System.Collections.Generic;
namespace skydiveLogs_api.Infrastructure
{
public class StatsByGearRepository : IStatsByGearRepository
public class StatsByGearRepository : IStatsRepository<StatsByGear>
{
#region Public Constructors

View File

@@ -6,7 +6,7 @@ using System.Collections.Generic;
namespace skydiveLogs_api.Infrastructure
{
public class StatsByJumpTypeRepository : IStatsByJumpTypeRepository
public class StatsByJumpTypeRepository : IStatsRepository<StatsByJumpType>
{
#region Public Constructors

View File

@@ -6,7 +6,7 @@ using System.Collections.Generic;
namespace skydiveLogs_api.Infrastructure
{
public class StatsByYearByJumpTypeRepository : IStatsByYearByJumpTypeRepository
public class StatsByYearByJumpTypeRepository : IStatsRepository<StatsByYearByJumpType>
{
#region Public Constructors

View File

@@ -6,7 +6,7 @@ using System.Collections.Generic;
namespace skydiveLogs_api.Infrastructure
{
public class StatsByYearRepository : IStatsByYearRepository
public class StatsByYearRepository : IStatsRepository<StatsByYear>
{
#region Public Constructors

View File

@@ -6,7 +6,7 @@ using System.Collections.Generic;
namespace skydiveLogs_api.Infrastructure
{
public class StatsForLastMonthByDzRepository : IStatsForLastMonthByDzRepository
public class StatsForLastMonthByDzRepository : IStatsRepository<StatsForLastMonthByDz>
{
#region Public Constructors

View File

@@ -6,7 +6,7 @@ using System.Collections.Generic;
namespace skydiveLogs_api.Infrastructure
{
public class StatsForLastMonthByJumpTypeRepository : IStatsForLastMonthByJumpTypeRepository
public class StatsForLastMonthByJumpTypeRepository : IStatsRepository<StatsForLastMonthByJumpType>
{
#region Public Constructors

View File

@@ -6,7 +6,7 @@ using System.Collections.Generic;
namespace skydiveLogs_api.Infrastructure
{
public class StatsForLastYearByDzRepository : IStatsForLastYearByDzRepository
public class StatsForLastYearByDzRepository : IStatsRepository<StatsForLastYearByDz>
{
#region Public Constructors

View File

@@ -6,7 +6,7 @@ using System.Collections.Generic;
namespace skydiveLogs_api.Infrastructure
{
public class StatsForLastYearByJumpTypeRepository : IStatsForLastYearByJumpTypeRepository
public class StatsForLastYearByJumpTypeRepository : IStatsRepository<StatsForLastYearByJumpType>
{
#region Public Constructors