partner.proto 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. // 通过陪玩IDs查看用户信息列表
  41. rpc FindPartnerDBList (common.PersonIDList) returns (common.PersonDBReply);
  42. }
  43. message UpdatePartnerInformationRequest {
  44. string Nickname = 1; // 昵称
  45. string avatarUrl = 2;// 头像
  46. int64 sex = 3; // 性别
  47. }
  48. message PartnerInfo{
  49. string id = 1; // id
  50. string nickname = 2;// 昵称
  51. string avatarUrl =3;// 头像链接
  52. int64 age = 4;// 年龄
  53. int64 sex = 5;// 性别
  54. int64 lookNum = 6;// 看过我
  55. int64 lookUnreadNum = 7;// 看过我的未读数
  56. int64 level = 8;// 等级
  57. int64 balance = 9;// 可提现余额
  58. int64 todayProfit = 10;// 进入收益
  59. int64 todayReceptionNum = 11;// 今日接待人数
  60. string reversionRate = 12;// 五分钟的回复率
  61. }
  62. message RandomPartnerInfo{
  63. string id = 1; // id
  64. string nickname = 2;// 昵称
  65. string avatarUrl =3;// 头像链接
  66. int64 sex = 4;// 性别
  67. }
  68. message GetRandomPartnerRequest{
  69. int64 sex = 1;// 性别
  70. }