关于podApi.proto
来源:5-20 Pod API 工程目录以及 proto 文件开发

慕瓜9063200
2023-03-07
service PodApi {
rpc FindPodById (Request) returns (Response) {}
}
message Pair {
string key = 1;
repeated string values = 2;
}
message Request {
string method = 1;
string path = 2;
map<string, Pair> header = 3;
map<string, Pair> get = 4;
map<string, Pair> post = 5;
string body = 6;
string url = 7;
}
这个请求体里面各个字段是什么意思的,课程里并没有讲解
写回答
1回答
-
Cap
2023-03-08
这个是proto文件的语法。课程中给出了详细的扩展阅读。
052023-04-06
相似问题