Signed-off-by: Eicy <im@crash.work>
This commit is contained in:
2024-12-17 00:23:59 +08:00
commit 88abc095c2
12 changed files with 1061 additions and 0 deletions

21
API/api.proto Normal file
View File

@@ -0,0 +1,21 @@
syntax = "proto3";
package api;
// 定义消息结构
message Request {
string code = 1;
string str1 = 2;
string str2 = 3;
int32 int_value = 4;
}
message Response {
bool success = 1;
string message = 2;
}
// 定义服务
service ApiService {
rpc CallApi (Request) returns (Response);
}