更新proto

Signed-off-by: Eicy <im@crash.work>
This commit is contained in:
2024-12-21 01:01:13 +08:00
parent b6539a3298
commit f05dce81a0
2 changed files with 35 additions and 31 deletions

View File

@@ -1,31 +0,0 @@
syntax = "proto3";
option csharp_namespace = "Debugger";
package Debugger;
service APIService {
rpc SendData (DataRequest) returns (DataResponse);
}
message DataRequest {
enum msgType{
public = 0;
private = 1;
}
int32 uin = 1;
enum logLevel{
fatal = 0;
error = 1;
warn = 2;
info = 3;
verbose= 4;
debug = 5;
}
string text = 2;
}
message DataResponse {
string message = 1;
bool success = 2;
}

35
proto/apiService.proto Normal file
View File

@@ -0,0 +1,35 @@
syntax = "proto3";
option csharp_namespace = "Debugger";
package Debugger;
service APIService {
rpc SendData (DataRequest) returns (DataResponse);
}
enum MsgType{
public = 0;
private = 1;
}
enum LogLevel{
fatal = 0;
error = 1;
warn = 2;
info = 3;
verbose = 4;
debug = 5;
}
message DataRequest {
string data = 1;
string event = 2;
LogLevel logLevel = 3;
MsgType msgType = 4;
uint32 uin = 5;
string text = 6;
}
message DataResponse {
string message = 1;
bool success = 2;
}