common.proto 4.3 KB

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