From 2bd50b98df074cbc1e060e507e3d3a0f4e017ae8 Mon Sep 17 00:00:00 2001 From: fish <920886811@163.com> Date: Mon, 5 Dec 2022 20:45:51 +0800 Subject: [PATCH] mod: online DoDailyStatusReportHandler --- protos/online/online.proto | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/protos/online/online.proto b/protos/online/online.proto index 39e71af..f8557d6 100644 --- a/protos/online/online.proto +++ b/protos/online/online.proto @@ -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 { @@ -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 - ]; -}