mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-07 15:10:01 +08:00
20 lines
273 B
Protocol Buffer
20 lines
273 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package pingsvc;
|
|
|
|
option go_package = "example.com/demo/pb";
|
|
|
|
import "middleware.proto";
|
|
|
|
message PingReq {
|
|
middleware.RequestMeta meta = 1;
|
|
}
|
|
|
|
message PingReply {
|
|
string pong = 1;
|
|
}
|
|
|
|
service PingService {
|
|
rpc Ping(PingReq) returns (PingReply);
|
|
}
|