vehicle.proto 908 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "smart-site-management-gateway/pb/v1";
  6. message VehicleListRequest{
  7. int32 page = 2;
  8. int64 project_id = 1;
  9. int32 type = 3;
  10. int64 start = 4;
  11. int64 end = 5;
  12. string plate_no = 6;
  13. int32 page_size = 7;
  14. }
  15. message Vehicle {
  16. // 时间
  17. string date = 1;
  18. // 车辆类型
  19. string vehicle_type = 2;
  20. // 车牌
  21. string plate_no = 3;
  22. // 进出类型,1 进 2 出
  23. string type =4;
  24. // 车辆进出图片
  25. string image =5;
  26. // 车辆清洗图片
  27. string clean_image = 6;
  28. string sn = 7;
  29. int64 id = 8;
  30. }
  31. message VehicleListReply{
  32. int64 total = 1;
  33. int32 page = 2;
  34. int32 page_size = 3;
  35. repeated Vehicle list = 4;
  36. }