feat: get multiple users by id (#6210)

* feat: introduce InTextQuery, and the ability to get multiple users by id

* added in query tests

* remove append call

* fix lints
This commit is contained in:
Ahmed Fwela
2023-08-12 16:37:42 +03:00
committed by GitHub
parent faf547f090
commit 133789fee9
5 changed files with 163 additions and 1 deletions

View File

@@ -184,9 +184,19 @@ message SearchQuery {
StateQuery state_query = 7;
TypeQuery type_query = 8;
LoginNameQuery login_name_query = 9;
InUserIDQuery in_user_ids_query = 10;
}
}
message InUserIDQuery {
repeated string user_ids = 1 [
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "the ids of the users to include"
example: "[\"69629023906488334\",\"69622366012355662\"]";
}
];
}
message UserNameQuery {
string user_name = 1 [
(validate.rules).string = {max_len: 200},