Commit c7297f3944220f14c15b83e41ccaa22760a56607
1 parent
a2411bbc
update protos
Showing
2 changed files
with
4 additions
and
27 deletions
Show diff stats
Hello.proto deleted
... | ... | @@ -1,23 +0,0 @@ |
1 | -syntax = "proto3"; | |
2 | -option go_package = "./pb;pb"; | |
3 | -import "google/protobuf/empty.proto"; | |
4 | - | |
5 | -package hello; | |
6 | - | |
7 | -message Login{ | |
8 | - string login = 1; | |
9 | - string password = 2; | |
10 | -} | |
11 | - | |
12 | -message TokenInfo { | |
13 | - string token = 1; | |
14 | -} | |
15 | - | |
16 | -message HelloWorld { | |
17 | - string msg = 1; | |
18 | -} | |
19 | - | |
20 | -service Hello { | |
21 | - rpc CreateToken(Login) returns(TokenInfo) {} | |
22 | - rpc SayHello(google.protobuf.Empty) returns(HelloWorld) {} | |
23 | -} | |
24 | 0 | \ No newline at end of file |
protocode.proto