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,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 | \ No newline at end of file | 0 | \ No newline at end of file |
protocode.proto
@@ -5,9 +5,9 @@ package protocode; | @@ -5,9 +5,9 @@ package protocode; | ||
5 | 5 | ||
6 | enum ProtoCode | 6 | enum ProtoCode |
7 | { | 7 | { |
8 | - UNKNOWN = 0x000; | ||
9 | - HeartRpc = 01; | ||
10 | - LoginRpc = 02; | ||
11 | - CreateRpc = 03; | 8 | + UNKNOWN = 0; |
9 | + HeartRpc = 1; | ||
10 | + LoginRpc = 2; | ||
11 | + CreateRpc = 3; | ||
12 | 12 | ||
13 | } | 13 | } |
14 | \ No newline at end of file | 14 | \ No newline at end of file |