123456789101112131415161718192021222324252627282930313233343536373839404142 |
- syntax = "proto3";
- // package声明符,用来防止不同的消息类型有命名冲突
- package v1;
- // 用于生成指定语言go的包名称
- option go_package = "smart-site-management-gateway/pb/v1";
- message VehicleListRequest{
- int32 page = 2;
- int64 project_id = 1;
- int32 type = 3;
- int64 start = 4;
- int64 end = 5;
- string plate_no = 6;
- int32 page_size = 7;
- }
- message Vehicle {
- // 时间
- string date = 1;
- // 车辆类型
- string vehicle_type = 2;
- // 车牌
- string plate_no = 3;
- // 进出类型,1 进 2 出
- string type =4;
- // 车辆进出图片
- string image =5;
- // 车辆清洗图片
- string clean_image = 6;
- string sn = 7;
- int64 id = 8;
- }
- message VehicleListReply{
- int64 total = 1;
- int32 page = 2;
- int32 page_size = 3;
- repeated Vehicle list = 4;
- }
|