partner.proto 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. // 获取陪聊的个人信息
  12. rpc GetPartnerInfo (google.protobuf.Empty) returns (PartnerInfo){
  13. option (google.api.http) = {
  14. post: "/api/partner/info",
  15. body:"*"
  16. };
  17. };
  18. // 获取陪聊的确认通过页面信息
  19. rpc GetPartnerCircleInfo (common.PartnerIDParam) returns (common.AddFriendMessageInfo){
  20. option (google.api.http) = {
  21. post: "/api/partner/circle/info",
  22. body:"*"
  23. };
  24. };
  25. // 更新陪聊的信息
  26. rpc UpdatePartnerInformation (UpdatePartnerInformationRequest) returns (google.protobuf.Empty){
  27. option (google.api.http) = {
  28. post: "/api/partner/update/information",
  29. body:"*"
  30. };
  31. };
  32. rpc GetRandomPartnerInfo (GetRandomPartnerRequest) returns (RandomPartnerInfo);
  33. // 获取陪聊的主页
  34. rpc GetPartnerHomeInfo (common.PartnerIDParam) returns (common.HomeInfo){
  35. option (google.api.http) = {
  36. post: "/api/partner/home",
  37. body:"*"
  38. };
  39. };
  40. }
  41. message UpdatePartnerInformationRequest {
  42. string Nickname = 1; // 昵称
  43. string avatarUrl = 2;// 头像
  44. int64 sex = 3; // 性别
  45. }
  46. message PartnerInfo{
  47. string id = 1; // id
  48. string nickname = 2;// 昵称
  49. string avatarUrl =3;// 头像链接
  50. int64 age = 4;// 年龄
  51. int64 sex = 5;// 性别
  52. int64 lookNum = 6;// 看过我
  53. int64 level = 7;// 等级
  54. int64 balance = 8;// 可提现余额
  55. int64 todayProfit = 9;// 进入收益
  56. int64 todayReceptionNum = 10;// 今日接待人数
  57. string reversionRate = 11;// 五分钟的回复率
  58. }
  59. message RandomPartnerInfo{
  60. string id = 1; // id
  61. string nickname = 2;// 昵称
  62. string avatarUrl =3;// 头像链接
  63. int64 sex = 4;// 性别
  64. }
  65. message GetRandomPartnerRequest{
  66. int64 sex = 1;// 性别
  67. }