mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
MediaAttachments first init
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
using Govor.Core.Models;
|
||||
|
||||
namespace Govor.Core.Repositories.MediasAttachments;
|
||||
|
||||
public interface IMediaAttachmentsExist
|
||||
{
|
||||
bool Exists(Guid id);
|
||||
bool Exists(MediaAttachments attachments);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using Govor.Core.Models;
|
||||
|
||||
namespace Govor.Core.Repositories.MediasAttachments;
|
||||
|
||||
public interface IMediaAttachmentsReader
|
||||
{
|
||||
Task<List<MediaAttachments>> GetAllAsync();
|
||||
Task<List<MediaAttachments>> GetAllByMessageId(Guid messageId);
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace Govor.Core.Repositories.MediasAttachments;
|
||||
|
||||
public interface IMediaAttachmentsRepository : IMediaAttachmentsReader, IMediaAttachmentsWriter, IMediaAttachmentsExist
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using Govor.Core.Models;
|
||||
|
||||
namespace Govor.Core.Repositories.MediasAttachments;
|
||||
|
||||
public interface IMediaAttachmentsWriter
|
||||
{
|
||||
Task AddAsync(MediaAttachments mediaAttachments);
|
||||
Task UpdateAsync(MediaAttachments mediaAttachments);
|
||||
Task RemoveAsync(Guid Id);
|
||||
}
|
||||
Reference in New Issue
Block a user