partner.proto 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. syntax = "proto3";
  2. package api.partner;
  3. import "google/api/annotations.proto";
  4. //import "google/protobuf/struct.proto";
  5. import "google/protobuf/empty.proto";
  6. import "api/base/base.proto";
  7. option go_package = "git.ikuban.com/server/pw-protobuf/api/partner;partner";
  8. option java_multiple_files = true;
  9. option java_package = "api.partner";
  10. service Partner {
  11. rpc Authorization (base.AuthorizationRequest) returns (base.TokenReply){
  12. option (google.api.http) = {
  13. post: "/api/partner/authorization",
  14. body:"*"
  15. };
  16. };
  17. rpc DebugLogin (base.DebugLoginRequest) returns (base.TokenReply){
  18. option (google.api.http) = {
  19. post: "/api/user/login/debug",
  20. body:"*"
  21. };
  22. };
  23. rpc GetPartnerInfo (google.protobuf.Empty) returns (PartnerInfo){
  24. option (google.api.http) = {
  25. post: "/api/partner/info",
  26. body:"*"
  27. };
  28. };
  29. rpc GetPartnerCircleInfo (base.PartnerIDParam) returns (PartnerCircleInfo){
  30. option (google.api.http) = {
  31. post: "/api/partner/info/circle",
  32. body:"*"
  33. };
  34. };
  35. }
  36. message PartnerCircleInfo{
  37. string id = 1; // id
  38. string nickname = 2;// 昵称
  39. string avatarUrl =3;// 头像链接
  40. string phone = 4;// 手机号
  41. int64 sex = 5;// 性别
  42. int64 credit = 6;// 积分
  43. }
  44. message PartnerInfo{
  45. string id = 1; // id
  46. string nickname = 2;// 昵称
  47. string avatarUrl =3;// 头像链接
  48. string phone = 4;// 手机号
  49. int64 sex = 5;// 性别
  50. int64 credit = 6;// 积分
  51. }