common.proto 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. string fromAppId = 10;// 来源公众号对应的appID
  53. string fromName = 11;// 来源公众号对应的公众号名称
  54. }
  55. message PersonIDList{
  56. repeated string personIds = 1;
  57. }
  58. message PersonDBReply{
  59. repeated PersonDB list = 1;
  60. }
  61. message PersonDB{
  62. string id = 1; // id
  63. string nickname = 2;// 昵称
  64. string avatarUrl =3;// 头像链接
  65. int64 sex = 4;// 性别
  66. repeated string pictures = 5; // 图片
  67. int64 age = 6; // 年龄
  68. string constellation = 7; // 星座
  69. string area = 8; // 地区
  70. string introduceVoice = 9; // 介绍语音
  71. }
  72. message ListPageRequest{
  73. int64 nextId = 1;
  74. int64 offset = 2;
  75. }
  76. message SendPhoneCodeRequest {
  77. string phone = 1;
  78. }
  79. message CheckPhoneCodeRequest {
  80. string phone = 1;
  81. string code = 2;
  82. }
  83. message UploadMaterialResponse{
  84. string link = 1;
  85. }