common.proto 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. }
  41. // 添加好友页面信息
  42. message AddFriendMessageInfo{
  43. string id = 1; // id
  44. string nickname = 2;// 昵称
  45. string avatarUrl =3;// 头像链接
  46. int64 sex = 4;// 性别
  47. repeated string pictures = 5; // 图片
  48. }
  49. message PersonIDList{
  50. repeated string personIds = 1;
  51. }
  52. message PersonDBReply{
  53. repeated PersonDB list = 1;
  54. }
  55. message PersonDB{
  56. string id = 1; // id
  57. string nickname = 2;// 昵称
  58. string avatarUrl =3;// 头像链接
  59. int64 sex = 4;// 性别
  60. repeated string pictures = 5; // 图片
  61. int64 age = 6; // 年龄
  62. string constellation = 7; // 星座
  63. string area = 8; // 地区
  64. string introduceVoice = 9; // 介绍语音
  65. }
  66. message ListPageRequest{
  67. int64 nextId = 1;
  68. int64 offset = 2;
  69. }
  70. message SendPhoneCodeRequest {
  71. string phone = 1;
  72. }
  73. message CheckPhoneCodeRequest {
  74. string phone = 1;
  75. string code = 2;
  76. }