mirror of
https://github.com/SocialSisterYi/bilibili-API-collect.git
synced 2025-02-16 06:00:08 +08:00
62 lines
767 B
Protocol Buffer
62 lines
767 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package bilibili.main.common.arch.doll.v1;
|
|
|
|
//
|
|
service Echo {
|
|
//
|
|
rpc Ping(PingRequest) returns(PingResponse);
|
|
//
|
|
rpc Say(SayRequest) returns(SayResponse);
|
|
//
|
|
rpc Error(ErrorRequest) returns(ErrorResponse);
|
|
}
|
|
|
|
//
|
|
message ErrorRequest {
|
|
//
|
|
int32 error = 2;
|
|
//
|
|
int64 time = 1;
|
|
//
|
|
int64 delay = 3;
|
|
}
|
|
|
|
//
|
|
message ErrorResponse {
|
|
//
|
|
string host = 1;
|
|
//
|
|
int64 time = 3;
|
|
}
|
|
|
|
//
|
|
message PingRequest {
|
|
//
|
|
int64 time = 1;
|
|
}
|
|
|
|
//
|
|
message PingResponse {
|
|
//
|
|
string host = 1;
|
|
//
|
|
int64 time = 3;
|
|
}
|
|
|
|
//
|
|
message SayRequest {
|
|
//
|
|
string content = 1;
|
|
}
|
|
|
|
//
|
|
message SayResponse {
|
|
//
|
|
string host = 1;
|
|
//
|
|
string content = 2;
|
|
//
|
|
int64 time = 3;
|
|
}
|