partner.proto 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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. import "api/statistics/statistics.proto";
  8. import "api/chat/chat.proto";
  9. option go_package = "git.ikuban.com/server/pw-protobuf/api/partner;partner";
  10. option java_multiple_files = true;
  11. option java_package = "api.partner";
  12. service Partner {
  13. // 获取接待员的个人信息
  14. rpc GetPartnerInfo (google.protobuf.Empty) returns (PartnerInfo){
  15. option (google.api.http) = {
  16. post: "/api/partner/info",
  17. body:"*"
  18. };
  19. };
  20. // 获取接待员的部分信息
  21. rpc GetPartnerMessage (google.protobuf.Empty) returns (PartnerMessage){
  22. option (google.api.http) = {
  23. post: "/api/partner/message",
  24. body:"*"
  25. };
  26. };
  27. // 获取接待员访问数详情
  28. rpc GetPartnerLookNum (google.protobuf.Empty) returns (statistics.LookMessageReply){
  29. option (google.api.http) = {
  30. post: "/api/partner/num/look",
  31. body:"*"
  32. };
  33. };
  34. // 接待员发送验证码
  35. rpc SendPhoneCode (common.SendPhoneCodeRequest) returns (google.protobuf.Empty){
  36. option (google.api.http) = {
  37. post: "/api/partner/code/send",
  38. body:"*"
  39. };
  40. };
  41. // 接待员验证验证码
  42. rpc CheckPhoneCode (common.CheckPhoneCodeRequest) returns (google.protobuf.Empty){
  43. option (google.api.http) = {
  44. post: "/api/partner/code/check",
  45. body:"*"
  46. };
  47. };
  48. // 获取接待员的确认通过页面信息
  49. rpc GetPartnerCircleInfo (common.PartnerIDParam) returns (common.AddFriendMessageInfo);
  50. // 更新接待员的信息
  51. rpc UpdatePartnerInformation (common.UpdateInformationRequest) returns (google.protobuf.Empty){
  52. option (google.api.http) = {
  53. post: "/api/partner/update/information",
  54. body:"*"
  55. };
  56. };
  57. rpc GetRandomPartnerInfo (GetRandomPartnerRequest) returns (RandomPartnerInfo);
  58. // 接待员获取主页信息
  59. rpc PartnerGetHomeInfo (common.PersonParam) returns (common.HomeInfo){
  60. option (google.api.http) = {
  61. post: "/api/partner/home",
  62. body:"*"
  63. };
  64. };
  65. // 查看看过我的列表
  66. rpc FindLookList (common.ListPageRequest) returns (statistics.LookAndLikeListReply){
  67. option (google.api.http) = {
  68. post: "/api/partner/list/look",
  69. body:"*"
  70. };
  71. };
  72. // 通过接待员IDs查看接待员信息列表
  73. rpc FindPartnerDBList (common.PersonIDList) returns (common.PersonDBReply);
  74. // 微信SDK初始化
  75. rpc WxConf (common.WxConfReq) returns (common.WxConfResponse){
  76. option (google.api.http) = {
  77. post: "/api/wx/jssdk/config",
  78. body:"*"
  79. };
  80. };
  81. // 创建用户与接待员的关联
  82. rpc CreateUserPartnerRoom (common.PersonIDParam) returns (chat.RoomReply){
  83. option (google.api.http) = {
  84. post: "/api/partner/create/room",
  85. body:"*"
  86. };
  87. };
  88. // 获取标签列表
  89. rpc FindTagListBySex (common.SexReq) returns (common.TagListReply){
  90. option (google.api.http) = {
  91. post: "/api/partner/list/tag",
  92. body:"*"
  93. };
  94. };
  95. // 获取标签列表
  96. rpc FindOnlineList (common.ListPage2Request) returns (common.OnlinePersonListReply){
  97. option (google.api.http) = {
  98. post: "/api/partner/list/online",
  99. body:"*"
  100. };
  101. };
  102. }
  103. message PartnerInfo{
  104. string id = 1; // id
  105. string nickname = 2;// 昵称
  106. string avatarUrl =3;// 头像链接
  107. int64 age = 4;// 年龄
  108. int64 sex = 5;// 性别
  109. string constellation = 6; // 星座
  110. int64 level = 7;// 等级
  111. repeated int64 tagList = 8; // 标签
  112. string signature = 9; // 签名
  113. string introduceVoice = 10; // 介绍语音
  114. string province = 11;// 省
  115. string city = 12;// 市
  116. string area = 13;// 区
  117. }
  118. message PartnerMessage{
  119. string id = 1; // id
  120. int64 balance = 2;// 可提现余额
  121. int64 todayProfit = 3;// 今日收益
  122. int64 todayReceptionNum = 4;// 今日接待人数
  123. string reversionRate = 5;// 五分钟的回复率
  124. }
  125. message RandomPartnerInfo{
  126. string id = 1; // id
  127. string nickname = 2;// 昵称
  128. string avatarUrl =3;// 头像链接
  129. int64 sex = 4;// 性别
  130. }
  131. message GetRandomPartnerRequest{
  132. int64 sex = 1;// 性别
  133. }