partner.proto 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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/common/common.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 GetPartnerInfo (google.protobuf.Empty) returns (PartnerInfo){
  12. option (google.api.http) = {
  13. post: "/api/partner/info",
  14. body:"*"
  15. };
  16. };
  17. rpc GetPartnerCircleInfo (common.PartnerIDParam) returns (PartnerCircleInfo){
  18. option (google.api.http) = {
  19. post: "/api/partner/circle/info",
  20. body:"*"
  21. };
  22. };
  23. rpc UpdatePartnerInformation (UpdatePartnerInformationRequest) returns (google.protobuf.Empty){
  24. option (google.api.http) = {
  25. post: "/api/user/update/information",
  26. body:"*"
  27. };
  28. };
  29. rpc GetRandomPartnerInfo (GetRandomPartnerRequest) returns (RandomPartnerInfo);
  30. }
  31. message UpdatePartnerInformationRequest {
  32. string Nickname = 1;
  33. string avatarUrl = 2;
  34. int64 sex = 3;
  35. }
  36. message PartnerCircleInfo{
  37. string id = 1; // id
  38. string nickname = 2;// 昵称
  39. string avatarUrl =3;// 头像链接
  40. int64 sex = 4;// 性别
  41. repeated string pictures = 5; // 图片
  42. }
  43. message PartnerInfo{
  44. string id = 1; // id
  45. string nickname = 2;// 昵称
  46. string avatarUrl =3;// 头像链接
  47. int64 sex = 4;// 性别
  48. repeated string pictures = 5; // 图片
  49. }
  50. message RandomPartnerInfo{
  51. string id = 1; // id
  52. string nickname = 2;// 昵称
  53. string avatarUrl =3;// 头像链接
  54. int64 sex = 4;// 性别
  55. }
  56. message GetRandomPartnerRequest{
  57. int64 sex = 1;// 性别
  58. }