mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
rework and starts for new friends system
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
using Govor.Core.Models;
|
||||
|
||||
namespace Govor.Application.Interfaces.Friends;
|
||||
|
||||
public interface IFriendRequestService
|
||||
{
|
||||
Task SendFriendRequestAsync(Guid fromUserId, Guid toUserId);
|
||||
Task AcceptFriendRequestAsync(Guid requestId, Guid currentUserId);
|
||||
Task RejectFriendRequestAsync(Guid requestId, Guid currentUserId);
|
||||
Task<List<Friendship>> GetIncomingRequestsAsync(Guid userId);
|
||||
Task<List<Friendship>> GetResponsesAsync(Guid userId);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace Govor.Application.Interfaces;
|
||||
|
||||
public interface IFriendsBlockService
|
||||
{
|
||||
Task BlockFriendRequestAsync(Guid userId, Guid currentUserId);
|
||||
Task UnblockFriendRequestAsync(Guid userId, Guid currentUserId);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using Govor.Core.Models;
|
||||
|
||||
namespace Govor.Application.Interfaces.Friends;
|
||||
|
||||
public interface IFriendshipService
|
||||
{
|
||||
Task<List<User>> GetFriendsAsync(Guid userId);
|
||||
Task<List<User>> SearchUsersAsync(string query, Guid currentId);
|
||||
}
|
||||
Reference in New Issue
Block a user