Files
contracts/proto/search.proto
Дмитрий 5e0cbe1214
Some checks failed
Publish / Publish Job (push) Failing after 2m24s
feat: add search proto files
2026-04-10 21:54:55 +03:00

31 lines
841 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;
}
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;
}