Finished MediaAttachments

the functionality and tests are completed
This commit is contained in:
Artemy
2025-06-22 16:05:36 +07:00
parent 4956a175c5
commit e7b7c402e1
6 changed files with 230 additions and 14 deletions
@@ -4,6 +4,6 @@ namespace Govor.Core.Repositories.MediasAttachments;
public interface IMediaAttachmentsExist
{
bool Exists(Guid id);
bool Exists(MediaAttachments attachments);
bool Exist(Guid id);
bool Exist(MediaAttachments attachments);
}
@@ -5,5 +5,6 @@ namespace Govor.Core.Repositories.MediasAttachments;
public interface IMediaAttachmentsReader
{
Task<List<MediaAttachments>> GetAllAsync();
Task<MediaAttachments> FindByIdAsync(Guid id);
Task<List<MediaAttachments>> GetAllByMessageId(Guid messageId);
}
@@ -5,6 +5,6 @@ namespace Govor.Core.Repositories.MediasAttachments;
public interface IMediaAttachmentsWriter
{
Task AddAsync(MediaAttachments mediaAttachments);
Task UpdateAsync(MediaAttachments mediaAttachments);
Task UpdateAsync(MediaAttachments attachments);
Task RemoveAsync(Guid Id);
}