common.proto 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. // 主页信息
  28. message HomeInfo{
  29. string id = 1; // id
  30. string nickname = 2;// 昵称
  31. string avatarUrl =3;// 头像链接
  32. int64 sex = 4;// 性别
  33. repeated string pictures = 5; // 图片
  34. int64 age = 6; // 年龄
  35. string constellation = 7; // 星座
  36. string area = 8; // 地区
  37. repeated string tag = 9; // 标签
  38. string signature = 10; // 签名
  39. string introduceVoice = 11; // 介绍语音
  40. int64 likedNum = 12;// 喜欢我
  41. int64 lookNum = 13;// 看过我
  42. }
  43. // 添加好友页面信息
  44. message AddFriendMessageInfo{
  45. string id = 1; // id
  46. string nickname = 2;// 昵称
  47. string avatarUrl =3;// 头像链接
  48. int64 sex = 4;// 性别
  49. repeated string pictures = 5; // 图片
  50. }
  51. message PersonIDList{
  52. repeated string personIds = 1;
  53. }
  54. message PersonDBReply{
  55. repeated PersonDB list = 1;
  56. }
  57. message PersonDB{
  58. string id = 1; // id
  59. string nickname = 2;// 昵称
  60. string avatarUrl =3;// 头像链接
  61. int64 sex = 4;// 性别
  62. repeated string pictures = 5; // 图片
  63. int64 age = 6; // 年龄
  64. string constellation = 7; // 星座
  65. string area = 8; // 地区
  66. string introduceVoice = 9; // 介绍语音
  67. }
  68. message ListPageRequest{
  69. int64 nextId = 1;
  70. int64 offset = 2;
  71. }
  72. message SendPhoneCodeRequest {
  73. string phone = 1;
  74. }
  75. message CheckPhoneCodeRequest {
  76. string phone = 1;
  77. string code = 2;
  78. }