api.proto 657 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. syntax = "proto3";
  2. package manager.service.open;
  3. option go_package = "v1";
  4. message AppIDReply {
  5. int64 app_id = 1;
  6. }
  7. message AppIDReq {
  8. string app_key = 2;
  9. }
  10. message CloseReply {
  11. }
  12. message CloseReq {
  13. }
  14. message PingReply {
  15. }
  16. message PingReq {
  17. }
  18. message SecretReply {
  19. string res = 1;
  20. }
  21. message SecretReq {
  22. string sapp_key = 2;
  23. }
  24. service Open {
  25. // Ping check dao health.
  26. rpc Ping(PingReq) returns(PingReply);
  27. // Close close all dao.
  28. rpc Close(CloseReq) returns(CloseReply);
  29. // Secret .
  30. rpc Secret(SecretReq) returns(SecretReply);
  31. // AppID .
  32. rpc AppID(AppIDReq) returns(AppIDReply);
  33. }