Files
contracts/proto/search/search.proto
Дмитрий bfc81b8a5a
Some checks failed
Publish / Publish Job (push) Failing after 2m22s
create search folder for proto files
2026-04-11 08:02:54 +03:00

32 lines
775 B
Protocol Buffer
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
syntax = "proto3";
package search.v1;
option go_package = "git.lendry.ru/lendry-erp/proto.git/go;pb";
service SearchService {
rpc SearchUsers (SearchUsersRequest) returns (SearchUsersResponse);
// В будущем сюда добавятся:
// rpc SearchMessages (SearchMessagesRequest) returns (SearchMessagesResponse);
// rpc SearchTickets (SearchTicketsRequest) returns (SearchTicketsResponse);
}
message SearchUsersRequest {
string query = 1;
string user_id = 2;
string session_id = 3;
optional string status = 4;
}
message SearchUserItem {
string id = 1;
string username = 2;
string full_name = 3;
string avatar_url = 4;
string status = 5;
bool is_public = 6;
}
message SearchUsersResponse {
repeated SearchUserItem users = 1;
}