common.proto 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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. }
  36. // 主页信息
  37. message HomeInfo{
  38. string id = 1; // id
  39. string nickname = 2;// 昵称
  40. string avatarUrl =3;// 头像链接
  41. int64 sex = 4;// 性别
  42. repeated string pictures = 5; // 图片
  43. int64 age = 6; // 年龄
  44. string constellation = 7; // 星座
  45. repeated TagList tagList = 8; // 标签
  46. string signature = 9; // 签名
  47. string introduceVoice = 10; // 介绍语音
  48. string province = 11;// 省
  49. string city = 12;// 市
  50. string area = 13;// 区
  51. }
  52. // 添加好友页面信息
  53. message AddFriendMessageInfo{
  54. string id = 1; // id
  55. string nickname = 2;// 昵称
  56. string avatarUrl =3;// 头像链接
  57. int64 sex = 4;// 性别
  58. repeated string pictures = 5; // 图片
  59. string fromOpenId = 6;// 来源公众号对应的openID
  60. bool isRegister = 7;// 是否注册
  61. bool isChat = 8;// 是否聊天
  62. bool isFromUs = 9;// 是否是来源我们
  63. string fromAppId = 10;// 来源公众号对应的appID
  64. string fromName = 11;// 来源公众号对应的公众号名称
  65. }
  66. message PersonIDList{
  67. repeated string personIds = 1;
  68. }
  69. message PersonDBReply{
  70. repeated PersonDB list = 1;
  71. }
  72. message PersonDB{
  73. string id = 1; // id
  74. string nickname = 2;// 昵称
  75. string avatarUrl =3;// 头像链接
  76. int64 sex = 4;// 性别
  77. repeated string pictures = 5; // 图片
  78. int64 age = 6; // 年龄
  79. string constellation = 7; // 星座
  80. string introduceVoice = 8; // 介绍语音
  81. string province = 9;// 省
  82. string city = 10;// 市
  83. string area = 11;// 区
  84. }
  85. message ListPageRequest{
  86. int64 nextId = 1;
  87. int64 offset = 2;
  88. }
  89. message SendPhoneCodeRequest {
  90. string phone = 1;
  91. }
  92. message CheckPhoneCodeRequest {
  93. string phone = 1;
  94. string code = 2;
  95. }
  96. message UploadMaterialResponse{
  97. string link = 1;
  98. }
  99. message Ids {
  100. repeated int64 ids = 1;// 标签ID
  101. }
  102. message TagListReply{
  103. repeated TagList list = 1;// 标签列表
  104. }
  105. message TagList{
  106. int64 id = 1; // 标签ID
  107. string name = 2;// 分组名
  108. }
  109. message SexReq{
  110. int64 sex = 1;
  111. }
  112. message RandomIntroduceReply{
  113. string introduce = 1;
  114. }
  115. message UpdateInformationRequest {
  116. string nickname = 1; // 昵称
  117. string avatarUrl = 2;// 头像
  118. int64 sex = 3; // 性别
  119. int64 birthday = 4;// 出生日期(毫秒级时间戳)
  120. repeated int64 tagList = 5;// 标签id列表
  121. string introduceVoice = 6;// 介绍语音的链接
  122. string signature = 7;// 介绍(签名)
  123. repeated string pictures = 8;// 相册(主页图片)
  124. string province = 9;// 省
  125. string city = 10;// 市
  126. string area = 11;// 区
  127. }