go-zero/example/bookstore/rpc/add/add.proto
2020-09-03 23:26:04 +08:00

17 lines
190 B
Protocol Buffer
Executable File

syntax = "proto3";
package add;
message addReq {
string book = 1;
int64 price = 2;
}
message addResp {
bool ok = 1;
}
service adder {
rpc add(addReq) returns(addResp);
}