vehicle.proto 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-household-gateway/pb/v1";
  6. message VehicleListRequest {
  7. int64 garden_id = 1;
  8. int64 page = 2;
  9. int64 page_size = 3;
  10. string plate_no = 4;
  11. int32 vehicle_type =5;
  12. int32 bind_type = 6;
  13. int64 household_uid = 7;
  14. }
  15. message VehicleItem {
  16. int64 id = 1;
  17. int64 space_id = 2;
  18. string plate_no = 3;
  19. int32 vehicle_type = 4;
  20. string vin = 5;
  21. string engine_no = 6;
  22. string brand = 7;
  23. string color = 8;
  24. int64 household_uid = 9;
  25. int32 bind_type = 10;
  26. string displacement_unit = 11;
  27. double displacement = 12;
  28. int32 seat = 13;
  29. string household_name = 14;
  30. string household_phone = 15;
  31. int64 park_id = 16;
  32. string park_name = 17;
  33. string park_number = 18;
  34. string space_number = 19;
  35. string brand_pic = 20;
  36. }
  37. message VehicleListReply {
  38. int64 page = 1;
  39. int64 total = 2;
  40. repeated VehicleItem list = 3;
  41. }