create voice channel rpc
This commit is contained in:
parent
6350009fcf
commit
8afb17177e
7 changed files with 334 additions and 38 deletions
proto/konfa
|
@ -15,6 +15,7 @@ service ServerService {
|
|||
returns (ListServerUsersResponse) {}
|
||||
rpc GetUser(GetUserRequest) returns (GetUserResponse) {}
|
||||
rpc CurrentUser(CurrentUserRequest) returns (CurrentUserResponse) {}
|
||||
rpc CreateChannel(CreateChannelRequest) returns (CreateChannelResponse) {}
|
||||
}
|
||||
|
||||
message CurrentUserRequest {}
|
||||
|
@ -33,4 +34,16 @@ message ListServerUsersResponse { repeated konfa.user.v1.User users = 1; }
|
|||
|
||||
message GetUserRequest { string user_id = 1; }
|
||||
|
||||
message GetUserResponse { konfa.user.v1.User user = 1; }
|
||||
message GetUserResponse { konfa.user.v1.User user = 1; }
|
||||
|
||||
message CreateChannelRequest {
|
||||
string server_id = 1;
|
||||
string name = 2;
|
||||
enum ChannelType {
|
||||
TEXT = 0;
|
||||
VOICE = 1;
|
||||
}
|
||||
ChannelType type = 3;
|
||||
}
|
||||
|
||||
message CreateChannelResponse { konfa.channel.v1.Channel channel = 1; }
|
|
@ -4,9 +4,7 @@ package konfa.user.v1;
|
|||
|
||||
option go_package = "/userv1";
|
||||
|
||||
// import "google/protobuf/timestamp.proto";
|
||||
|
||||
message User {
|
||||
string id = 1;
|
||||
string username = 2;
|
||||
string id = 1;
|
||||
string username = 2;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue