partner.proto 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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 SendPhoneCode (common.SendPhoneCodeRequest) returns (google.protobuf.Empty){
  21. option (google.api.http) = {
  22. post: "/api/partner/code/send",
  23. body:"*"
  24. };
  25. };
  26. // 接待员验证验证码
  27. rpc CheckPhoneCode (common.CheckPhoneCodeRequest) returns (google.protobuf.Empty){
  28. option (google.api.http) = {
  29. post: "/api/partner/code/check",
  30. body:"*"
  31. };
  32. };
  33. // 获取接待员的确认通过页面信息
  34. rpc GetPartnerCircleInfo (common.PartnerIDParam) returns (common.AddFriendMessageInfo);
  35. // 更新接待员的信息
  36. rpc UpdatePartnerInformation (UpdatePartnerInformationRequest) returns (google.protobuf.Empty){
  37. option (google.api.http) = {
  38. post: "/api/partner/update/information",
  39. body:"*"
  40. };
  41. };
  42. rpc GetRandomPartnerInfo (GetRandomPartnerRequest) returns (RandomPartnerInfo);
  43. // 接待员获取主页信息
  44. rpc PartnerGetHomeInfo (common.PersonParam) returns (common.HomeInfo){
  45. option (google.api.http) = {
  46. post: "/api/partner/home",
  47. body:"*"
  48. };
  49. };
  50. // 查看看过我的列表
  51. rpc FindLookList (common.ListPageRequest) returns (statistics.LookAndLikeListReply){
  52. option (google.api.http) = {
  53. post: "/api/partner/list/look",
  54. body:"*"
  55. };
  56. };
  57. // 通过接待员IDs查看接待员信息列表
  58. rpc FindPartnerDBList (common.PersonIDList) returns (common.PersonDBReply);
  59. }
  60. message UpdatePartnerInformationRequest {
  61. string Nickname = 1; // 昵称
  62. string avatarUrl = 2;// 头像
  63. int64 sex = 3; // 性别
  64. }
  65. message PartnerInfo{
  66. string id = 1; // id
  67. string nickname = 2;// 昵称
  68. string avatarUrl =3;// 头像链接
  69. int64 age = 4;// 年龄
  70. int64 sex = 5;// 性别
  71. int64 lookNum = 6;// 看过我
  72. int64 lookUnreadNum = 7;// 看过我的未读数
  73. int64 level = 8;// 等级
  74. int64 balance = 9;// 可提现余额
  75. int64 todayProfit = 10;// 进入收益
  76. int64 todayReceptionNum = 11;// 今日接待人数
  77. string reversionRate = 12;// 五分钟的回复率
  78. }
  79. message RandomPartnerInfo{
  80. string id = 1; // id
  81. string nickname = 2;// 昵称
  82. string avatarUrl =3;// 头像链接
  83. int64 sex = 4;// 性别
  84. }
  85. message GetRandomPartnerRequest{
  86. int64 sex = 1;// 性别
  87. }