rework and starts for new friends system

This commit is contained in:
Artemy
2025-07-08 22:28:04 +07:00
parent 92c1ff6458
commit b1f3aa0266
29 changed files with 1028 additions and 309 deletions
@@ -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);
}