Files
workspace/code/base-project/base-go-v3/idl/hello/hello.proto
T
2025-11-23 22:43:57 +08:00

23 lines
332 B
Protocol Buffer

// idl/hello/hello.proto
syntax = "proto3";
package hello;
option go_package = "hertz/hello";
import "api.proto";
message HelloReq {
string Name = 1[(api.query)="name"];
}
message HelloResp {
string RespBody = 1;
}
service HelloService {
rpc Method1(HelloReq) returns(HelloResp) {
option (api.get) = "/hello";
}
}