garden.proto 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-device/pb/v1";
  6. message GardenHouseholdUserListRequest {
  7. int64 garden_id = 1;
  8. int64 page = 2;
  9. int64 page_size = 3;
  10. string name = 4;
  11. string phone = 5;
  12. string id_number = 6;
  13. int32 user_type = 7;
  14. repeated int64 uids = 8;
  15. }
  16. message GardenHouseholdUserItem {
  17. int64 id = 1;
  18. // 1业主 2家人 3租客
  19. int32 user_type = 2;
  20. string phone = 3;
  21. string name = 4;
  22. // 1 身份证 2 护照
  23. int32 id_type = 5;
  24. // 证件号
  25. string id_number = 6;
  26. string garden_name = 7;
  27. string house_name = 8;
  28. }
  29. message GardenHouseholdUserListReply {
  30. int64 total = 1;
  31. int64 page = 2;
  32. repeated GardenHouseholdUserItem list = 3;
  33. }
  34. message GardenHouseholdListRequest {
  35. int64 garden_id = 1;
  36. int64 uid = 2;
  37. int64 page = 3;
  38. int64 page_size = 4;
  39. int32 user_type = 5;
  40. string name = 6;
  41. }
  42. message GardenHouseholdItem {
  43. int64 id = 1;
  44. // 1业主 2家人 3租客
  45. int32 user_type = 2;
  46. string phone = 3;
  47. string name = 4;
  48. repeated string appendix = 5;
  49. // 1 身份证 2 护照
  50. int32 id_type = 6;
  51. // 证件号
  52. string id_number = 7;
  53. // 房号
  54. string house_name = 8;
  55. int32 approve_status = 9;
  56. string garden_name = 10;
  57. int64 uid = 11;
  58. int64 house_id = 12;
  59. int64 unit_id = 13;
  60. }
  61. message GardenHouseholdListReply {
  62. int64 page = 1;
  63. int64 total = 2;
  64. repeated GardenHouseholdItem list = 3;
  65. }
  66. message GardenHouseholdUnitIdsRequest {
  67. int64 garden_id = 1;
  68. repeated int64 uids = 2;
  69. }
  70. message GardenHouseholdUnitId {
  71. int64 uid = 1;
  72. string house_names = 2;
  73. repeated int64 unit_ids = 3;
  74. int32 user_type = 4;
  75. }
  76. message GardenHouseholdUnitIdsReply {
  77. repeated GardenHouseholdUnitId list = 1;
  78. }
  79. message GardenHouseholdUidsFromUnitIdRequest {
  80. int64 garden_id = 1;
  81. repeated int64 unit_ids = 2;
  82. }
  83. message GardenHouseholdUidsFromUnitIdReply {
  84. repeated int64 uids = 3;
  85. }
  86. message SystemMsgAddRequest {
  87. int64 garden_id = 1;
  88. string content = 2;
  89. string code = 3;
  90. int64 uid = 4;
  91. }
  92. message SystemMsgAddReply {
  93. }