Skip to content

Commit

Permalink
mod: online DoDailyStatusReportHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
turingczz committed Dec 5, 2022
1 parent 8975804 commit 2bd50b9
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions protos/online/online.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,21 @@ import "google/protobuf/timestamp.proto";

service OnlineService {
rpc UpdateSignMetrics(ReqSignMetrics) returns (RespSignMetrics);
rpc DoDailySignReportHandler(ReqSignMetrics) returns (Result);
rpc GetLatestSignReport(ReqLatestSignReport) returns (RespSignMetrics);
rpc DoDailyStatusReportHandler(ReqSignMetrics) returns (Result);
rpc GetLastDailySignedInfoHandler(ReqLastDailySignedInfo) returns (RespSignMetrics);
}

message ReqLastDailySignedInfo {
string peer_id = 1;
}

message Result {
ResponseCode code = 1;
string message = 2;
google.protobuf.Timestamp response_time = 3 [
(gogoproto.nullable) = false,
(gogoproto.stdtime) = true
];
}

message ReqSignMetrics {
Expand Down Expand Up @@ -66,16 +79,3 @@ message SignedInfo {
string bttc_address = 5;
uint32 signed_time = 6;
}

message ReqLatestSignReport {
string node_id = 1;
}

message Result {
ResponseCode code = 1;
string message = 2;
google.protobuf.Timestamp response_time = 3 [
(gogoproto.nullable) = false,
(gogoproto.stdtime) = true
];
}

0 comments on commit 2bd50b9

Please sign in to comment.