vehicle.proto 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-system-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. string brand_pic = 20;
  80. }
  81. message VehicleListReply {
  82. int64 page = 1;
  83. int64 total = 2;
  84. repeated VehicleItem list = 3;
  85. }