vehicle.proto 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-applete-gateway/pb/v1";
  6. message VehicleAddRequest {
  7. int64 garden_id = 1;
  8. int64 space_id = 2;
  9. string plate_no = 3;
  10. int32 vehicle_type = 4;
  11. string vin = 5;
  12. string engine_no = 6;
  13. string brand = 7;
  14. string color = 8;
  15. int64 household_uid = 9;
  16. int32 bind_type = 10;
  17. string displacement_unit = 11;
  18. double displacement = 12;
  19. int32 seat = 13;
  20. }
  21. message VehicleAddReply {
  22. int64 id = 1;
  23. }
  24. message VehicleUpdateRequest {
  25. int64 garden_id = 1;
  26. int64 space_id = 2;
  27. string plate_no = 3;
  28. int32 vehicle_type = 4;
  29. string vin = 5;
  30. string engine_no = 6;
  31. string brand = 7;
  32. string color = 8;
  33. int64 household_uid = 9;
  34. int32 bind_type = 10;
  35. string displacement_unit = 11;
  36. double displacement = 12;
  37. int32 seat = 13;
  38. int64 id = 14;
  39. }
  40. message VehicleUpdateReply {
  41. VehicleUpdateRequest origin = 1;
  42. }
  43. message VehicleDelRequest {
  44. int64 garden_id = 1;
  45. int64 id = 2;
  46. }
  47. message VehicleDelReply {
  48. VehicleUpdateRequest origin = 1;
  49. }
  50. message VehicleListRequest {
  51. int64 garden_id = 1;
  52. int64 page = 2;
  53. int64 page_size = 3;
  54. string plate_no = 4;
  55. int32 vehicle_type =5;
  56. int32 bind_type = 6;
  57. int64 household_uid = 7;
  58. }
  59. message VehicleItem {
  60. int64 id = 1;
  61. int64 space_id = 2;
  62. string plate_no = 3;
  63. int32 vehicle_type = 4;
  64. string vin = 5;
  65. string engine_no = 6;
  66. string brand = 7;
  67. string color = 8;
  68. int64 household_uid = 9;
  69. int32 bind_type = 10;
  70. string displacement_unit = 11;
  71. double displacement = 12;
  72. int32 seat = 13;
  73. string household_name = 14;
  74. string household_phone = 15;
  75. int64 park_id = 16;
  76. string park_name = 17;
  77. string park_number = 18;
  78. string space_number = 19;
  79. }
  80. message VehicleListReply {
  81. int64 page = 1;
  82. int64 total = 2;
  83. repeated VehicleItem list = 3;
  84. }