api v2.2
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
namespace Application.Services.Database;
|
||||
|
||||
public interface IConversationRepository
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using Core.Entities;
|
||||
|
||||
namespace Application.Services.Database;
|
||||
|
||||
public interface IDoctorRepository
|
||||
{
|
||||
Task AddAsync(Doctor doctor);
|
||||
|
||||
Task<Doctor?> GetByIdAsync(Guid id);
|
||||
|
||||
Task<Doctor?> FindByEmailAsync(string email);
|
||||
Task<bool> CredentialsMatch(string email, string password);
|
||||
|
||||
Task UpdateAsync(Doctor doctor);
|
||||
|
||||
Task DeleteAsync(Doctor doctor);
|
||||
|
||||
Task<IEnumerable<Doctor>> GetAllAsync();
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using Core.Entities;
|
||||
|
||||
namespace Application.Services.Database;
|
||||
|
||||
public interface IMedicalHistoryRepository
|
||||
{
|
||||
Task<MedicalHistory?> GetByIdAsync(Guid id);
|
||||
Task AddAsync(MedicalHistory medicalHistory);
|
||||
Task UpdateAsync(MedicalHistory medicalHistory);
|
||||
Task DeleteAsync(MedicalHistory medicalHistory);
|
||||
Task<IEnumerable<MedicalHistory>> GetAllAsync();
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using Core.Entities;
|
||||
|
||||
namespace Application.Services.Database;
|
||||
|
||||
public interface IPatientRepository
|
||||
{
|
||||
Task AddAsync(Patient patient);
|
||||
|
||||
Task<Patient?> GetByIdAsync(Guid id);
|
||||
|
||||
Task<Patient?> FindByEmailAsync(string email);
|
||||
|
||||
Task UpdateAsync(Patient doctor);
|
||||
|
||||
Task DeleteAsync(Patient doctor);
|
||||
|
||||
Task<IEnumerable<Patient>> GetAllAsync();
|
||||
}
|
||||
Reference in New Issue
Block a user