park.proto 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-household-gateway/pb/v1";
  6. message ParkListRequest {
  7. int64 garden_id = 1;
  8. }
  9. message ParkItem {
  10. int64 id = 1;
  11. int64 garden_id = 2;
  12. string park_number = 3;
  13. string park_name = 4;
  14. string comment = 5;
  15. int64 space_count = 6;
  16. string created_at = 7;
  17. int32 park_type = 8;
  18. }
  19. message ParkListReply {
  20. repeated ParkItem list = 1;
  21. }
  22. message ParkSpaceListRequest {
  23. int64 park_id = 1;
  24. int64 page = 2;
  25. int64 page_size = 3;
  26. int64 garden_id = 4;
  27. int32 space_type = 5;
  28. string space_number = 6;
  29. int64 house_id = 7;
  30. }
  31. message ParkSpaceItem {
  32. string space_number = 1;
  33. double space_area = 2;
  34. string comment = 3;
  35. int64 park_id = 4;
  36. int32 space_type = 5;
  37. int64 id = 6;
  38. string created_at = 7;
  39. string park_number = 8;
  40. string park_name = 9;
  41. int32 park_type = 10;
  42. int64 house_id = 11;
  43. string house_name = 12;
  44. }
  45. message ParkSpaceListReply {
  46. int64 total = 1;
  47. int64 page = 2;
  48. repeated ParkSpaceItem list = 3;
  49. }