finalizare 1.0
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using Domain.Entities;
|
||||
|
||||
namespace Application.Services.Database.PostgreSQL;
|
||||
|
||||
public interface IAdminRepository
|
||||
{
|
||||
Task AddAsync(Admin admin, CancellationToken token);
|
||||
|
||||
Task<Admin?> GetByIdAsync(Guid id, CancellationToken token);
|
||||
|
||||
Task<Admin?> FindByEmailAsync(string email, CancellationToken token);
|
||||
|
||||
Task<bool> CredentialsMatch(string email, string password, CancellationToken token);
|
||||
|
||||
Task UpdateAsync(Admin admin, CancellationToken token);
|
||||
|
||||
Task DeleteAsync(Admin admin, CancellationToken token);
|
||||
|
||||
Task<IEnumerable<Admin>> GetAllAsync(CancellationToken token);
|
||||
}
|
||||
@@ -1,18 +1,17 @@
|
||||
using Core.Entities;
|
||||
using Domain.Entities;
|
||||
|
||||
namespace Application.Services.Database.PostgreSQL;
|
||||
|
||||
public interface IDoctorRepository
|
||||
{
|
||||
Task AddAsync(Doctor doctor);
|
||||
Task AddAsync(Doctor doctor, CancellationToken token);
|
||||
Task<Doctor?> GetByIdAsync(Guid id, CancellationToken token);
|
||||
Task<Doctor?> FindByEmailAsync(string email, CancellationToken token);
|
||||
Task<bool> CredentialsMatch(string email, string password, CancellationToken token);
|
||||
|
||||
Task<Doctor?> GetByIdAsync(Guid id);
|
||||
Task<Doctor?> FindByEmailAsync(string email);
|
||||
Task<bool> CredentialsMatch(string email, string password);
|
||||
Task UpdateAsync(Doctor doctor, CancellationToken token);
|
||||
|
||||
Task UpdateAsync(Doctor doctor);
|
||||
Task DeleteAsync(Doctor doctor, CancellationToken token);
|
||||
|
||||
Task DeleteAsync(Doctor doctor);
|
||||
|
||||
Task<IEnumerable<Doctor>> GetAllAsync();
|
||||
Task<IEnumerable<Doctor>> GetAllAsync(CancellationToken token);
|
||||
}
|
||||
@@ -1,12 +1,13 @@
|
||||
using Core.Entities;
|
||||
using Domain.Entities;
|
||||
|
||||
namespace Application.Services.Database.PostgreSQL;
|
||||
|
||||
public interface IMedicalHistoryRepository
|
||||
{
|
||||
Task<MedicalHistory?> GetByIdAsync(Guid id);
|
||||
Task AddAsync(MedicalHistory medicalHistory);
|
||||
Task UpdateAsync(MedicalHistory medicalHistory);
|
||||
Task DeleteAsync(MedicalHistory medicalHistory);
|
||||
Task<IEnumerable<MedicalHistory>> GetAllAsync();
|
||||
Task<MedicalHistory?> GetByIdAsync(Guid id, CancellationToken token);
|
||||
Task<MedicalHistory?> GetByPatientIdAsync(Guid patientId, CancellationToken token);
|
||||
Task AddAsync(MedicalHistory medicalHistory, CancellationToken token);
|
||||
Task UpdateAsync(MedicalHistory medicalHistory, CancellationToken token);
|
||||
Task DeleteAsync(MedicalHistory medicalHistory, CancellationToken token);
|
||||
Task<IEnumerable<MedicalHistory>> GetAllAsync(CancellationToken token);
|
||||
}
|
||||
@@ -1,20 +1,20 @@
|
||||
using Core.Entities;
|
||||
using Domain.Entities;
|
||||
|
||||
namespace Application.Services.Database.PostgreSQL;
|
||||
|
||||
public interface IPatientRepository
|
||||
{
|
||||
Task AddAsync(Patient patient);
|
||||
Task AddAsync(Patient patient, CancellationToken token);
|
||||
|
||||
Task<Patient?> GetByIdAsync(Guid id);
|
||||
|
||||
Task<Patient?> FindByEmailAsync(string email);
|
||||
|
||||
Task<bool> CredentialsMatch(string email, string password);
|
||||
Task<Patient?> GetByIdAsync(Guid id, CancellationToken token);
|
||||
|
||||
Task UpdateAsync(Patient patient);
|
||||
Task<Patient?> FindByEmailAsync(string email, CancellationToken token);
|
||||
|
||||
Task DeleteAsync(Patient patient);
|
||||
Task<bool> CredentialsMatch(string email, string password, CancellationToken token);
|
||||
|
||||
Task<IEnumerable<Patient>> GetAllAsync();
|
||||
Task UpdateAsync(Patient patient, CancellationToken token);
|
||||
|
||||
Task DeleteAsync(Patient patient, CancellationToken token);
|
||||
|
||||
Task<IEnumerable<Patient>> GetAllAsync(CancellationToken token);
|
||||
}
|
||||
Reference in New Issue
Block a user