mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-14 02:10:00 +08:00
18 lines
230 B
Protocol Buffer
18 lines
230 B
Protocol Buffer
|
|
// test proto
|
||
|
|
syntax = "proto3";
|
||
|
|
|
||
|
|
package greet;
|
||
|
|
import "base/common.proto";
|
||
|
|
|
||
|
|
message In {
|
||
|
|
string name = 1;
|
||
|
|
common.User user = 2;
|
||
|
|
}
|
||
|
|
|
||
|
|
message Out {
|
||
|
|
string greet = 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
service StreamGreeter {
|
||
|
|
rpc greet(In) returns (Out);
|
||
|
|
}
|