partner.proto 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 (GetPartnerCircleInfoReq) returns (PartnerCircleInfo){
  30. option (google.api.http) = {
  31. post: "/api/partner/info/circle",
  32. body:"*"
  33. };
  34. };
  35. }
  36. message GetPartnerCircleInfoReq{
  37. string partnerId = 1;
  38. }
  39. message PartnerCircleInfo{
  40. string id = 1; // id
  41. string nickname = 2;// 昵称
  42. string avatarUrl =3;// 头像链接
  43. string phone = 4;// 手机号
  44. int64 sex = 5;// 性别
  45. int64 credit = 6;// 积分
  46. }
  47. message PartnerInfo{
  48. string id = 1; // id
  49. string nickname = 2;// 昵称
  50. string avatarUrl =3;// 头像链接
  51. string phone = 4;// 手机号
  52. int64 sex = 5;// 性别
  53. int64 credit = 6;// 积分
  54. }