123456789101112131415161718192021222324252627282930313233343536 |
- syntax = "proto3";
- package gamelang;
- option go_package = "/gamelang/gamelangpb";
- message User {
- uint32 id = 1;
- string name = 2;
- bytes password = 3;
- bool admin = 4;
- }
- service UserService {
- rpc CreateUser (User) returns (User);
- rpc DeleteUser (User) returns (User);
- rpc GetUser (User) returns (User);
- rpc ListUser (User) returns (stream User);
- rpc CheckUser (User) returns (User);
- }
- message World {
- uint32 id = 1;
- string name = 2;
- repeated User users = 3;
- repeated string games = 4;
- }
- service WorldService {
- rpc CreateWorld (World) returns (World);
- rpc DeleteWorld (World) returns (World);
- rpc GetWorld (World) returns (World);
- rpc ListWorld (World) returns (stream World);
- rpc JoinWorld (World) returns (World);
- rpc AddGameWorld (World) returns (World);
- }
|