konfa-server/proto/konfa/server/v1/service.proto
royalcat 5da11dc01b
All checks were successful
docker / build-docker (push) Successful in 3m18s
users methods
2024-12-25 21:22:29 +03:00

40 lines
No EOL
864 B
Protocol Buffer

syntax = "proto3";
package konfa.server.v1;
option go_package = "/serverv1";
// import "google/protobuf/timestamp.proto";
import "konfa/user/v1/user.proto";
import "konfa/channel/v1/channels.proto";
service ServerService {
rpc ListServerChannels(ListServerChannelsRequest) returns (ListServerChannelsResponse) {}
rpc ListServerUsers(ListServerUsersRequest) returns (ListServerUsersResponse) {}
rpc GetUser(GetUserRequest) returns (GetUserResponse) {}
}
message ListServerChannelsRequest {
string server_id = 1;
}
message ListServerChannelsResponse {
repeated konfa.channel.v1.Channel channels = 1;
}
message ListServerUsersRequest {
string server_id = 1;
}
message ListServerUsersResponse {
repeated konfa.user.v1.User users = 1;
}
message GetUserRequest {
string user_id = 1;
}
message GetUserResponse {
konfa.user.v1.User user = 1;
}