common.proto 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 UserIDParam {
  21. string userId = 1;
  22. }
  23. // 主页信息
  24. message HomeInfo{
  25. string id = 1; // id
  26. string nickname = 2;// 昵称
  27. string avatarUrl =3;// 头像链接
  28. int64 sex = 4;// 性别
  29. repeated string pictures = 5; // 图片
  30. int64 age = 6; // 年龄
  31. string constellation = 7; // 星座
  32. string area = 8; // 地区
  33. repeated string tag = 9; // 标签
  34. string signature = 10; // 签名
  35. string introduceVoice = 11; // 介绍语音
  36. int64 likedNum = 12;// 喜欢我
  37. int64 lookNum = 13;// 看过我
  38. }
  39. // 添加好友页面信息
  40. message AddFriendMessageInfo{
  41. string id = 1; // id
  42. string nickname = 2;// 昵称
  43. string avatarUrl =3;// 头像链接
  44. int64 sex = 4;// 性别
  45. repeated string pictures = 5; // 图片
  46. }
  47. message PersonIDList{
  48. repeated string personIds = 1;
  49. }
  50. message PersonDBReply{
  51. repeated PersonDB list = 1;
  52. }
  53. message PersonDB{
  54. string id = 1; // id
  55. string nickname = 2;// 昵称
  56. string avatarUrl =3;// 头像链接
  57. int64 sex = 4;// 性别
  58. repeated string pictures = 5; // 图片
  59. int64 age = 6; // 年龄
  60. string constellation = 7; // 星座
  61. string area = 8; // 地区
  62. string introduceVoice = 9; // 介绍语音
  63. }