common.proto 4.3 KB

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