Modernize and Dockerize server
This commit is contained in:
5
server/src/CPATapi.Server/Interfaces/IRepository.cs
Normal file
5
server/src/CPATapi.Server/Interfaces/IRepository.cs
Normal file
@@ -0,0 +1,5 @@
|
||||
namespace CPATapi.Server.Interfaces;
|
||||
|
||||
public interface IRepository
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using CPATapi.Server.Models;
|
||||
|
||||
namespace CPATapi.Server.Interfaces;
|
||||
|
||||
public interface ITapiDirectoryRepository : IRepository
|
||||
{
|
||||
Task<IEnumerable<TapiContact>> SearchAsync(string[] args);
|
||||
Task<TapiContact?> SearchByNumberAsync(string number);
|
||||
Task<IEnumerable<TapiContact>> GetAllAsync();
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using CPATapi.Server.Models;
|
||||
|
||||
namespace CPATapi.Server.Interfaces;
|
||||
|
||||
public interface IZeitConsensRepository : IRepository
|
||||
{
|
||||
Task<IEnumerable<string>> GetUsersAsync();
|
||||
Task<IEnumerable<Stamp>> GetStampsAsync(string user, DateTime from, DateTime to);
|
||||
}
|
||||
Reference in New Issue
Block a user