添加Grpc.Core和Grpc.Tool并编写相应proto

Signed-off-by: Eicy <im@crash.work>
This commit is contained in:
2024-12-18 01:43:20 +08:00
parent 685b8e406f
commit 1051517140
4 changed files with 65 additions and 1 deletions

21
API/service.proto Normal file
View File

@@ -0,0 +1,21 @@
syntax = "proto3";
option csharp_namespace = "Debugger";
package Debugger;
service BotService {
rpc SendData (DataRequest) returns (DataResponse);
}
message DataRequest {
string code = 1;
string str1 = 2;
string str2 = 3;
int32 num = 4;
}
message DataResponse {
string message = 1;
bool success = 2;
}