ZipCodePush.proto 440 B

1234567891011121314151617181920212223242526272829303132
  1. syntax = "proto3";
  2. option csharp_namespace = "XYY.gRpc.Order";
  3. package order;
  4. service ZipCodePush{
  5. rpc GetWaitPush(Empty) returns(WaitPush);
  6. rpc Push(WaitPush) returns(PushResult);
  7. }
  8. message Empty{
  9. }
  10. message WaitPushItem{
  11. int32 Id =1 ;
  12. string ZipCode=2;
  13. string Area=3;
  14. }
  15. message WaitPush{
  16. repeated WaitPushItem Items=1;
  17. }
  18. message PushResult{
  19. int32 code = 1;
  20. bool success = 2;
  21. string error = 3;
  22. string message = 4;
  23. }