New list user friends & blocklist calls

This commit is contained in:
2024-07-30 18:31:26 +08:00
parent 82305206b0
commit 4cea915abf
15 changed files with 572 additions and 183 deletions

View File

@ -8,6 +8,8 @@ service Auth {
rpc Authenticate(AuthRequest) returns (AuthReply) {}
rpc EnsurePermGranted(CheckPermRequest) returns (CheckPermResponse) {}
rpc EnsureUserPermGranted(CheckUserPermRequest) returns (CheckUserPermResponse) {}
rpc ListUserFriends(ListUserRelativeRequest) returns (ListUserRelativeResponse) {}
rpc ListUserBlocklist(ListUserRelativeRequest) returns (ListUserRelativeResponse) {}
}
message UserInfo {
@ -57,4 +59,18 @@ message CheckUserPermRequest {
message CheckUserPermResponse {
bool is_valid = 1;
}
}
message SimpleUserInfo {
uint64 id = 1;
string name = 2;
string nick = 3;
}
message ListUserRelativeRequest {
uint64 user_id = 1;
}
message ListUserRelativeResponse {
repeated SimpleUserInfo data = 1;
}