mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
Refactor: Revert to hard deletes for messages. Remove IsDeleted flag and update repository and configurations accordingly.
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
namespace Govor.Core.Repositories.Groups;
|
||||
|
||||
public class IGroupsReader
|
||||
public interface IGroupsReader // Changed to interface
|
||||
{
|
||||
|
||||
Task<bool> ExistsAsync(Guid groupId);
|
||||
Task<bool> IsUserMemberOfGroupAsync(Guid userId, Guid groupId);
|
||||
// Potentially other read methods like:
|
||||
// Task<ChatGroup?> GetByIdAsync(Guid groupId);
|
||||
// Task<List<User>> GetGroupMembersAsync(Guid groupId);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace Govor.Core.Repositories.Groups;
|
||||
|
||||
public interface IGroupsRepository : IGroupsReader
|
||||
{
|
||||
// This interface will combine IGroupsReader and IGroupsWriter (once created)
|
||||
// For now, it only includes IGroupsReader.
|
||||
}
|
||||
Reference in New Issue
Block a user