common.proto 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. syntax = "proto3";
  2. package api.common;
  3. //import "google/api/annotations.proto";
  4. //import "google/protobuf/struct.proto";
  5. //import "google/protobuf/empty.proto";
  6. option go_package = "git.ikuban.com/server/pw-protobuf/api/common;common";
  7. option java_multiple_files = true;
  8. option java_package = "api.common";
  9. message UserAndPartnerIdParam {
  10. string partnerId = 1;
  11. string userId = 2;
  12. }
  13. message User1AndUser2IdParam {
  14. string user1 = 1;
  15. string user2 = 2;
  16. }
  17. message PartnerIDParam {
  18. string partnerID = 1;
  19. }
  20. message PersonParam{
  21. string personID = 1; // 查询目标的ID
  22. string personType = 2; // 类型
  23. }
  24. message UserIDParam {
  25. string userId = 1;
  26. }
  27. message WxConfReq {
  28. string url = 1;
  29. }
  30. message WxConfResponse{
  31. string appId = 1; // 必填,公众号的唯一标识
  32. int64 timestamp = 2; // 必填,生成签名的时间戳
  33. string nonceStr = 3;// 必填,生成签名的随机串
  34. string signature = 4;// 必填,签名
  35. string url = 5;// 传入的url
  36. }
  37. // 主页信息
  38. message HomeInfo{
  39. string id = 1; // id
  40. string nickname = 2;// 昵称
  41. string avatarUrl =3;// 头像链接
  42. int64 sex = 4;// 性别
  43. repeated string pictures = 5; // 图片
  44. int64 age = 6; // 年龄
  45. string constellation = 7; // 星座
  46. repeated TagList tagList = 8; // 标签
  47. string signature = 9; // 签名
  48. string introduceVoice = 10; // 介绍语音
  49. string province = 11;// 省
  50. string city = 12;// 市
  51. string area = 13;// 区
  52. }
  53. // 添加好友页面信息
  54. message AddFriendMessageInfo{
  55. string id = 1; // id
  56. string nickname = 2;// 昵称
  57. string avatarUrl =3;// 头像链接
  58. int64 sex = 4;// 性别
  59. repeated string pictures = 5; // 图片
  60. string fromOpenId = 6;// 来源公众号对应的openID
  61. bool isRegister = 7;// 是否注册
  62. bool isChat = 8;// 是否聊天
  63. bool isFromUs = 9;// 是否是来源我们
  64. string fromAppId = 10;// 来源公众号对应的appID
  65. string fromName = 11;// 来源公众号对应的公众号名称
  66. }
  67. message PersonIDList{
  68. repeated string personIds = 1;
  69. }
  70. message PersonDBReply{
  71. repeated PersonDB list = 1;
  72. }
  73. message PersonDB{
  74. string id = 1; // id
  75. string nickname = 2;// 昵称
  76. string avatarUrl =3;// 头像链接
  77. int64 sex = 4;// 性别
  78. repeated string pictures = 5; // 图片
  79. int64 age = 6; // 年龄
  80. string constellation = 7; // 星座
  81. string introduceVoice = 8; // 介绍语音
  82. string province = 9;// 省
  83. string city = 10;// 市
  84. string area = 11;// 区
  85. string signature = 12;//介绍
  86. }
  87. message ListPageRequest{
  88. int64 nextId = 1;
  89. int64 offset = 2;
  90. }
  91. message ListPage2Request{
  92. string nextId = 1;
  93. int64 offset = 2;
  94. }
  95. message ListPageAndPersonRequest{
  96. string nextId = 1;
  97. int64 offset = 2;
  98. string personID = 3; // 查询目标的ID
  99. string personType = 4; // 类型
  100. }
  101. message SendPhoneCodeRequest {
  102. string phone = 1;
  103. }
  104. message CheckPhoneCodeRequest {
  105. string phone = 1;
  106. string code = 2;
  107. }
  108. message UploadMaterialResponse{
  109. string link = 1;
  110. }
  111. message Ids {
  112. repeated int64 ids = 1;// 标签ID
  113. }
  114. message TagListReply{
  115. repeated TagList list = 1;// 标签列表
  116. }
  117. message TagList{
  118. int64 id = 1; // 标签ID
  119. string name = 2;// 分组名
  120. }
  121. message SexReq{
  122. int64 sex = 1;
  123. }
  124. message RandomIntroduceReply{
  125. string introduce = 1;
  126. }
  127. message UpdateInformationRequest {
  128. string nickname = 1; // 昵称
  129. string avatarUrl = 2;// 头像
  130. int64 sex = 3; // 性别
  131. int64 birthday = 4;// 出生日期(毫秒级时间戳)
  132. repeated int64 tagList = 5;// 标签id列表
  133. string introduceVoice = 6;// 介绍语音的链接
  134. string signature = 7;// 介绍(签名)
  135. repeated string pictures = 8;// 相册(主页图片)
  136. string province = 9;// 省
  137. string city = 10;// 市
  138. string area = 11;// 区
  139. }
  140. message OnlinePersonListReply{
  141. repeated OnlinePersonInfo list = 1;
  142. string nextId = 2;
  143. }
  144. message OnlinePersonInfo{
  145. string personID = 1; // 查询目标的ID
  146. string personType = 2; // 类型
  147. string nickname = 3;// 昵称
  148. string avatarUrl =4;// 头像链接
  149. int64 sex = 5;// 性别
  150. int64 age = 6; // 年龄
  151. string constellation = 7; // 星座
  152. string signature = 8; // 签名
  153. string province = 9;// 省
  154. string city = 10;// 市
  155. string area = 11;// 区
  156. }