greet.proto 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. syntax = "proto3";
  2. option csharp_namespace = "XYY.gRpc.Tracking";
  3. import public "SeventeenConvert.proto";
  4. import "google/protobuf/timestamp.proto";
  5. import "google/protobuf/empty.proto";
  6. package greet;
  7. // The greeting service definition.
  8. service Db {
  9. // Sends a greeting
  10. rpc AddTracking (SeventeenConvertItem) returns (BaseRes);
  11. rpc AsyncDbPushStatus(PostPushDataResult) returns(AsyncDbPushStatusResult);
  12. rpc AddTrackingTrajectory (SupplementLogList) returns (SupplementLogList);
  13. rpc AddTrackingTrajectoryErrors (SupplementLogList) returns (BaseRes);
  14. rpc GetWaitSupplementTracking(google.protobuf.Empty) returns(SupplementLogList);
  15. }
  16. message BaseRes{
  17. int32 code = 1;
  18. bool success = 2;
  19. string error = 3;
  20. string message = 4;
  21. }
  22. message AsyncDbPushStatusResult{
  23. bool IsSuccess=1;
  24. string Message=2;
  25. }
  26. message PostPushDataResult{
  27. repeated PostPushDataResultItem Items = 1;
  28. string Auth = 2;
  29. }
  30. message PostPushDataResultItem
  31. {
  32. string TrackingNumber = 1;
  33. bool IsSuccess = 2;
  34. string FailMessage = 3;
  35. }
  36. message GetPushDataResult{
  37. bool success=1;
  38. string message=2;
  39. repeated PushDataItem Items = 3;
  40. }
  41. message PushDataItem{
  42. string TrackingNumber = 1;
  43. string ServiceCode = 2;
  44. }
  45. message SupplementLog{
  46. string TrackingNumber=1;
  47. int32 JudgmentNode=2;
  48. google.protobuf.Timestamp TrackSupplementTime=3;
  49. string TrackSupplementText=4;
  50. int32 TrackSupplementLocation=5;
  51. string ErrorMsg=6;
  52. bool IsSuccess=7;
  53. }
  54. message SupplementLogList{
  55. repeated SupplementLog List = 1;
  56. }