partner.proto 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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 lookUnreadNum = 7;// 看过我的未读数
  54. int64 level = 8;// 等级
  55. int64 balance = 9;// 可提现余额
  56. int64 todayProfit = 10;// 进入收益
  57. int64 todayReceptionNum = 11;// 今日接待人数
  58. string reversionRate = 12;// 五分钟的回复率
  59. }
  60. message RandomPartnerInfo{
  61. string id = 1; // id
  62. string nickname = 2;// 昵称
  63. string avatarUrl =3;// 头像链接
  64. int64 sex = 4;// 性别
  65. }
  66. message GetRandomPartnerRequest{
  67. int64 sex = 1;// 性别
  68. }