partner.proto 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. option go_package = "git.ikuban.com/server/pw-protobuf/api/partner;partner";
  9. option java_multiple_files = true;
  10. option java_package = "api.partner";
  11. service Partner {
  12. // 获取接待员的个人信息
  13. rpc GetPartnerInfo (google.protobuf.Empty) returns (PartnerInfo){
  14. option (google.api.http) = {
  15. post: "/api/partner/info",
  16. body:"*"
  17. };
  18. };
  19. // 获取接待员访问数详情
  20. rpc GetPartnerLookNum (google.protobuf.Empty) returns (statistics.LookMessageReply){
  21. option (google.api.http) = {
  22. post: "/api/partner/num/look",
  23. body:"*"
  24. };
  25. };
  26. // 接待员发送验证码
  27. rpc SendPhoneCode (common.SendPhoneCodeRequest) returns (google.protobuf.Empty){
  28. option (google.api.http) = {
  29. post: "/api/partner/code/send",
  30. body:"*"
  31. };
  32. };
  33. // 接待员验证验证码
  34. rpc CheckPhoneCode (common.CheckPhoneCodeRequest) returns (google.protobuf.Empty){
  35. option (google.api.http) = {
  36. post: "/api/partner/code/check",
  37. body:"*"
  38. };
  39. };
  40. // 获取接待员的确认通过页面信息
  41. rpc GetPartnerCircleInfo (common.PartnerIDParam) returns (common.AddFriendMessageInfo);
  42. // 更新接待员的信息
  43. rpc UpdatePartnerInformation (UpdatePartnerInformationRequest) returns (google.protobuf.Empty){
  44. option (google.api.http) = {
  45. post: "/api/partner/update/information",
  46. body:"*"
  47. };
  48. };
  49. rpc GetRandomPartnerInfo (GetRandomPartnerRequest) returns (RandomPartnerInfo);
  50. // 接待员获取主页信息
  51. rpc PartnerGetHomeInfo (common.PersonParam) returns (common.HomeInfo){
  52. option (google.api.http) = {
  53. post: "/api/partner/home",
  54. body:"*"
  55. };
  56. };
  57. // 查看看过我的列表
  58. rpc FindLookList (common.ListPageRequest) returns (statistics.LookAndLikeListReply){
  59. option (google.api.http) = {
  60. post: "/api/partner/list/look",
  61. body:"*"
  62. };
  63. };
  64. // 通过接待员IDs查看接待员信息列表
  65. rpc FindPartnerDBList (common.PersonIDList) returns (common.PersonDBReply);
  66. // 微信SDK初始化
  67. rpc WxConf (common.WxConfReq) returns (common.WxConfResponse){
  68. option (google.api.http) = {
  69. post: "/api/wx/jssdk/config",
  70. body:"*"
  71. };
  72. };
  73. // 获取标签列表
  74. rpc FindTagListByGroupNameAndSex (common.FindTagListByGroupNameAndSex) returns (common.TagListReply){
  75. option (google.api.http) = {
  76. post: "/api/partner/list/tag",
  77. body:"*"
  78. };
  79. };
  80. }
  81. message UpdatePartnerInformationRequest {
  82. string Nickname = 1; // 昵称
  83. string avatarUrl = 2;// 头像
  84. int64 sex = 3; // 性别
  85. }
  86. message PartnerInfo{
  87. string id = 1; // id
  88. string nickname = 2;// 昵称
  89. string avatarUrl =3;// 头像链接
  90. int64 age = 4;// 年龄
  91. int64 sex = 5;// 性别
  92. int64 lookNum = 6;// 看过我
  93. int64 lookUnreadNum = 7;// 看过我的未读数
  94. int64 level = 8;// 等级
  95. int64 balance = 9;// 可提现余额
  96. int64 todayProfit = 10;// 进入收益
  97. int64 todayReceptionNum = 11;// 今日接待人数
  98. string reversionRate = 12;// 五分钟的回复率
  99. }
  100. message RandomPartnerInfo{
  101. string id = 1; // id
  102. string nickname = 2;// 昵称
  103. string avatarUrl =3;// 头像链接
  104. int64 sex = 4;// 性别
  105. }
  106. message GetRandomPartnerRequest{
  107. int64 sex = 1;// 性别
  108. }