common.proto 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. string fromOpenId = 6;// 来源公众号对应的openID
  49. bool isRegister = 7;// 是否注册
  50. bool isChat = 8;// 是否聊天
  51. bool isFromUs = 9;// 是否是来源我们
  52. }
  53. message PersonIDList{
  54. repeated string personIds = 1;
  55. }
  56. message PersonDBReply{
  57. repeated PersonDB list = 1;
  58. }
  59. message PersonDB{
  60. string id = 1; // id
  61. string nickname = 2;// 昵称
  62. string avatarUrl =3;// 头像链接
  63. int64 sex = 4;// 性别
  64. repeated string pictures = 5; // 图片
  65. int64 age = 6; // 年龄
  66. string constellation = 7; // 星座
  67. string area = 8; // 地区
  68. string introduceVoice = 9; // 介绍语音
  69. }
  70. message ListPageRequest{
  71. int64 nextId = 1;
  72. int64 offset = 2;
  73. }
  74. message SendPhoneCodeRequest {
  75. string phone = 1;
  76. }
  77. message CheckPhoneCodeRequest {
  78. string phone = 1;
  79. string code = 2;
  80. }