mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-27 20:38:41 +08:00
17 lines
190 B
Protocol Buffer
17 lines
190 B
Protocol Buffer
|
syntax = "proto3";
|
||
|
|
||
|
package add;
|
||
|
|
||
|
message addReq {
|
||
|
string book = 1;
|
||
|
int64 price = 2;
|
||
|
}
|
||
|
|
||
|
message addResp {
|
||
|
bool ok = 1;
|
||
|
}
|
||
|
|
||
|
service adder {
|
||
|
rpc add(addReq) returns(addResp);
|
||
|
}
|