From c400d2d58b85bd112ac3782c2b3e8a810e34bea4 Mon Sep 17 00:00:00 2001 From: itzaname Date: Sat, 28 Feb 2026 18:04:45 -0500 Subject: [PATCH] Add search and avatar services --- auth.proto | 14 ++++++++++++++ users.proto | 6 ++++++ 2 files changed, 20 insertions(+) diff --git a/auth.proto b/auth.proto index 59f1e18..811b22d 100644 --- a/auth.proto +++ b/auth.proto @@ -11,6 +11,7 @@ service AuthService { rpc GetGroupRole(IdMessage) returns (RoleReponse); rpc ValidateSession(IdMessage) returns (ValidateResponse); rpc GetAuthMetadata(google.protobuf.Empty) returns (AuthMetadataResponse); + rpc GetAvatars(AvatarListRequest) returns (AvatarListResponse); } message IdMessage { @@ -43,3 +44,16 @@ message AuthMetadataResponse { string AccountURL = 3; } +message AvatarListRequest { + repeated uint64 UserIDs = 1; +} + +message AvatarItem { + uint64 UserID = 1; + string AvatarURL = 2; +} + +message AvatarListResponse { + repeated AvatarItem Avatars = 1; +} + diff --git a/users.proto b/users.proto index 1916c30..9323174 100644 --- a/users.proto +++ b/users.proto @@ -11,6 +11,7 @@ service UsersService { rpc Create(UserRequest) returns (IdMessage); rpc Delete(IdMessage) returns (NullResponse); rpc List(ListRequest) returns (UserList); + rpc SearchByUsername(SearchByUsernameRequest) returns (UserList); } message IdList { @@ -55,6 +56,11 @@ message Pagination { int32 Number = 2; } +message SearchByUsernameRequest { + string Query = 1; + Pagination Page = 2; +} + message NullResponse { } \ No newline at end of file