common.proto 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. string area = 8; // 地区
  46. repeated TagList tagList = 9; // 标签
  47. string signature = 10; // 签名
  48. string introduceVoice = 11; // 介绍语音
  49. }
  50. // 添加好友页面信息
  51. message AddFriendMessageInfo{
  52. string id = 1; // id
  53. string nickname = 2;// 昵称
  54. string avatarUrl =3;// 头像链接
  55. int64 sex = 4;// 性别
  56. repeated string pictures = 5; // 图片
  57. string fromOpenId = 6;// 来源公众号对应的openID
  58. bool isRegister = 7;// 是否注册
  59. bool isChat = 8;// 是否聊天
  60. bool isFromUs = 9;// 是否是来源我们
  61. string fromAppId = 10;// 来源公众号对应的appID
  62. string fromName = 11;// 来源公众号对应的公众号名称
  63. }
  64. message PersonIDList{
  65. repeated string personIds = 1;
  66. }
  67. message PersonDBReply{
  68. repeated PersonDB list = 1;
  69. }
  70. message PersonDB{
  71. string id = 1; // id
  72. string nickname = 2;// 昵称
  73. string avatarUrl =3;// 头像链接
  74. int64 sex = 4;// 性别
  75. repeated string pictures = 5; // 图片
  76. int64 age = 6; // 年龄
  77. string constellation = 7; // 星座
  78. string area = 8; // 地区
  79. string introduceVoice = 9; // 介绍语音
  80. }
  81. message ListPageRequest{
  82. int64 nextId = 1;
  83. int64 offset = 2;
  84. }
  85. message SendPhoneCodeRequest {
  86. string phone = 1;
  87. }
  88. message CheckPhoneCodeRequest {
  89. string phone = 1;
  90. string code = 2;
  91. }
  92. message UploadMaterialResponse{
  93. string link = 1;
  94. }
  95. message Ids {
  96. repeated int64 ids = 1;// 标签ID
  97. }
  98. message FindTagListByGroupNameAndSex {
  99. string groupName = 1;// 分组名
  100. int64 sex = 2;// 性别
  101. }
  102. message TagListReply{
  103. string name = 1;// 分组名
  104. repeated TagList list = 2;// 标签列表
  105. }
  106. message TagList{
  107. int64 id = 1; // 标签ID
  108. string name = 2;// 分组名
  109. }