add support for Query Follower\Following(s) ...

This commit is contained in:
2025-08-02 15:14:38 +03:30
parent 277575f518
commit a7cef94a7a
3 changed files with 364 additions and 247 deletions
+11 -5
View File
@@ -144,6 +144,9 @@ namespace xIdentityService.Constants
[StringValue("Account/Friendship/{destUser}/RejectRequest")]
RejectRequest,
[StringValue("Account/Friendship/{destUser}/FriendshipInfo")]
FriendshipInfo,
[StringValue("Account/Friendship/{destUser}/IsFollower")]
IsFollower,
@@ -159,6 +162,12 @@ namespace xIdentityService.Constants
[StringValue("Account/Friendship/AllFollowers")]
AllFollowers,
[StringValue("Account/Friendship/FollowersList")]
FollowersList,
[StringValue("Account/Friendship/QueryFollowers")]
QueryFollowers,
[StringValue("Account/Friendship/{destUser}/IsFollowing")]
IsFollowing,
@@ -177,11 +186,8 @@ namespace xIdentityService.Constants
[StringValue("Account/Friendship/FollowingsList")]
FollowingsList,
[StringValue("Account/Friendship/FollowersList")]
FollowersList,
[StringValue("Account/Friendship/{destUser}/FriendshipInfo")]
FriendshipInfo,
[StringValue("Account/Friendship/QueryFollowings")]
QueryFollowings,
#endregion
//
+15 -5
View File
@@ -217,6 +217,11 @@ namespace xIdentityService.Interfaces
string destUser
);
Task<XFriendshipInfoDto> GetFriendshipInfo(
XTokenResponse tokens,
string destUser
);
Task<bool> IsFollower(
XTokenResponse tokens,
string destUser
@@ -236,6 +241,13 @@ namespace xIdentityService.Interfaces
Task<IEnumerable<XFriendshipFollower>> GetAllFollowers(XTokenResponse tokens);
Task<IEnumerable<string>> GetFollowingList(XTokenResponse tokens);
Task<XQueryResult<XFriendDto>> QueryFollowers(
XQuery query,
XTokenResponse tokens
);
Task<bool> IsFollowing(
XTokenResponse tokens,
string destUser
@@ -255,13 +267,11 @@ namespace xIdentityService.Interfaces
Task<IEnumerable<XFriendshipFollowing>> GetAllFollowings(XTokenResponse tokens);
Task<IEnumerable<string>> GetFollowingList(XTokenResponse tokens);
Task<IEnumerable<string>> GetFollowersList(XTokenResponse tokens);
Task<XFriendshipInfoDto> GetFriendshipInfo(
XTokenResponse tokens,
string destUser
Task<XQueryResult<XFriendDto>> QueryFollowings(
XQuery query,
XTokenResponse tokens
);
#endregion
File diff suppressed because it is too large Load Diff