This commit is contained in:
andrei-mihnea-cerbu
2024-04-08 00:03:24 +03:00
parent 2ccec617a5
commit b48d5ee19e
168 changed files with 2877 additions and 1146 deletions
@@ -2,4 +2,4 @@
public interface IConversationRepository
{
}
}
@@ -6,9 +6,10 @@ public interface IDoctorRepository
{
Task AddAsync(Doctor doctor);
Task<Doctor> GetByIdAsync(Guid id);
Task<Doctor?> GetByIdAsync(Guid id);
Task<Doctor?> FindByEmailAsync(string email);
Task<bool> CredentialsMatch(string email, string password);
Task UpdateAsync(Doctor doctor);
@@ -4,12 +4,9 @@ namespace Application.Services.Database;
public interface IMedicalHistoryRepository
{
Task<MedicalHistory> GetByIdAsync(Guid id);
Task<MedicalHistory?> GetByUserIdAsync(Guid userId);
Task<MedicalHistory?> GetByIdAsync(Guid id);
Task AddAsync(MedicalHistory medicalHistory);
Task UpdateAsync(MedicalHistory medicalHistory);
}
Task DeleteAsync(MedicalHistory medicalHistory);
Task<IEnumerable<MedicalHistory>> GetAllAsync();
}
@@ -0,0 +1,12 @@
using MongoDB.Driver;
namespace Application.Services.Database;
public interface IMongoDbService
{
IMongoCollection<T> GetCollection<T>(string collectionName);
Task<List<T>> FindAsync<T>(string collectionName, List<(string FieldName, string Value)> criteria);
Task AddAsync<T>(string collectionName, T document);
Task ModifyAsync<T>(string collectionName, string keyField, string keyValue, T document);
Task DeleteAsync<T>(string collectionName, string keyField, string keyValue);
}
@@ -2,17 +2,17 @@
namespace Application.Services.Database;
public interface IPacientRepository
public interface IPatientRepository
{
Task AddAsync(Pacient pacient);
Task AddAsync(Patient patient);
Task<Pacient> GetByIdAsync(Guid id);
Task<Patient?> GetByIdAsync(Guid id);
Task<Pacient?> FindByEmailAsync(string email);
Task<Patient?> FindByEmailAsync(string email);
Task UpdateAsync(Pacient doctor);
Task UpdateAsync(Patient doctor);
Task DeleteAsync(Pacient doctor);
Task DeleteAsync(Patient doctor);
Task<IEnumerable<Pacient>> GetAllAsync();
}
Task<IEnumerable<Patient>> GetAllAsync();
}
@@ -0,0 +1,6 @@
namespace Application.Services.HashingAlgorithms;
public interface IHashingAlgorithms
{
string? SHA256Algorithm(string? password);
}