medicalHistory: deletion when patient is deleted
This commit is contained in:
@@ -14,7 +14,7 @@ public interface IAppointmentsMongoDbService
|
||||
Task ModifyAsync<T>(string keyField, string keyValue, T document);
|
||||
|
||||
Task DeleteAsync<T>(string keyField, string keyValue);
|
||||
|
||||
|
||||
Task DeleteByIdAsync<T>(string id);
|
||||
|
||||
public Task<bool> IsAppointmentUnique(AppointmentManagementDto dto);
|
||||
|
||||
@@ -13,6 +13,6 @@ public interface IChatMongoDbService
|
||||
Task ModifyAsync<T>(string keyField, string keyValue, T document);
|
||||
|
||||
Task DeleteAsync<T>(string keyField, string keyValue);
|
||||
|
||||
|
||||
Task DeleteByIdAsync<T>(string id);
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
using Application.Endpoints.MedicalHistories;
|
||||
using MongoDB.Driver;
|
||||
using MongoDB.Driver;
|
||||
|
||||
namespace Application.Services.Database.MongoDB;
|
||||
|
||||
@@ -14,6 +13,6 @@ public interface IMedicalHistoryMongoDbService
|
||||
Task ModifyAsync<T>(string keyField, string keyValue, T document);
|
||||
|
||||
Task DeleteAsync<T>(string keyField, string keyValue);
|
||||
|
||||
|
||||
Task DeleteByIdAsync<T>(string id);
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
namespace Application.Services.Database;
|
||||
|
||||
public interface IConversationRepository
|
||||
{
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
using Core.Entities;
|
||||
|
||||
namespace Application.Services.Database;
|
||||
namespace Application.Services.Database.PostgreSQL;
|
||||
|
||||
public interface IDoctorRepository
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Core.Entities;
|
||||
|
||||
namespace Application.Services.Database;
|
||||
namespace Application.Services.Database.PostgreSQL;
|
||||
|
||||
public interface IMedicalHistoryRepository
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Core.Entities;
|
||||
|
||||
namespace Application.Services.Database;
|
||||
namespace Application.Services.Database.PostgreSQL;
|
||||
|
||||
public interface IPatientRepository
|
||||
{
|
||||
@@ -10,9 +10,9 @@ public interface IPatientRepository
|
||||
|
||||
Task<Patient?> FindByEmailAsync(string email);
|
||||
|
||||
Task UpdateAsync(Patient doctor);
|
||||
Task UpdateAsync(Patient patient);
|
||||
|
||||
Task DeleteAsync(Patient doctor);
|
||||
Task DeleteAsync(Patient patient);
|
||||
|
||||
Task<IEnumerable<Patient>> GetAllAsync();
|
||||
}
|
||||
Reference in New Issue
Block a user