123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- syntax = "proto3";
- option csharp_namespace = "XYY.gRpc.Tracking";
- import public "SeventeenConvert.proto";
- import "google/protobuf/timestamp.proto";
- import "google/protobuf/empty.proto";
- package greet;
- // The greeting service definition.
- service Db {
- // Sends a greeting
- rpc AddTracking (SeventeenConvertItem) returns (BaseRes);
- rpc AsyncDbPushStatus(PostPushDataResult) returns(AsyncDbPushStatusResult);
- rpc AddTrackingTrajectory (SupplementLogList) returns (SupplementLogList);
- rpc AddTrackingTrajectoryErrors (SupplementLogList) returns (BaseRes);
- rpc GetWaitSupplementTracking(google.protobuf.Empty) returns(SupplementLogList);
- }
-
- message BaseRes{
- int32 code = 1;
- bool success = 2;
- string error = 3;
- string message = 4;
- }
- message AsyncDbPushStatusResult{
- bool IsSuccess=1;
- string Message=2;
- }
- message PostPushDataResult{
- repeated PostPushDataResultItem Items = 1;
- string Auth = 2;
- }
- message PostPushDataResultItem
- {
- string TrackingNumber = 1;
- bool IsSuccess = 2;
- string FailMessage = 3;
- }
- message GetPushDataResult{
- bool success=1;
- string message=2;
- repeated PushDataItem Items = 3;
- }
- message PushDataItem{
- string TrackingNumber = 1;
- string ServiceCode = 2;
- }
- message SupplementLog{
- string TrackingNumber=1;
- int32 JudgmentNode=2;
- google.protobuf.Timestamp TrackSupplementTime=3;
- string TrackSupplementText=4;
- int32 TrackSupplementLocation=5;
- string ErrorMsg=6;
- bool IsSuccess=7;
- }
- message SupplementLogList{
- repeated SupplementLog List = 1;
- }
|