@@ -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
35
proto/apiService.proto
Normal 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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user