add bookstore example
This commit is contained in:
16
example/bookstore/rpc/add/add.proto
Executable file
16
example/bookstore/rpc/add/add.proto
Executable file
@@ -0,0 +1,16 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package add;
|
||||
|
||||
message addReq {
|
||||
string book = 1;
|
||||
int64 price = 2;
|
||||
}
|
||||
|
||||
message addResp {
|
||||
bool ok = 1;
|
||||
}
|
||||
|
||||
service adder {
|
||||
rpc add(addReq) returns(addResp);
|
||||
}
|
||||
Reference in New Issue
Block a user