syntax = "proto3"; // package声明符,用来防止不同的消息类型有命名冲突 package pb_v1; // 用于生成指定语言go的包名称 option go_package = "property-system-gateway/pb/v1"; message VehicleAddRequest { int64 garden_id = 1; int64 space_id = 2; string plate_no = 3; int32 vehicle_type = 4; string vin = 5; string engine_no = 6; string brand = 7; string color = 8; int64 household_uid = 9; int32 bind_type = 10; string displacement_unit = 11; double displacement = 12; int32 seat = 13; } message VehicleAddReply { int64 id = 1; } message VehicleUpdateRequest { int64 garden_id = 1; int64 space_id = 2; string plate_no = 3; int32 vehicle_type = 4; string vin = 5; string engine_no = 6; string brand = 7; string color = 8; int64 household_uid = 9; int32 bind_type = 10; string displacement_unit = 11; double displacement = 12; int32 seat = 13; int64 id = 14; } message VehicleUpdateReply { VehicleUpdateRequest origin = 1; } message VehicleDelRequest { int64 garden_id = 1; int64 id = 2; } message VehicleDelReply { VehicleUpdateRequest origin = 1; } message VehicleListRequest { int64 garden_id = 1; int64 page = 2; int64 page_size = 3; string plate_no = 4; int32 vehicle_type =5; int32 bind_type = 6; int64 household_uid = 7; } message VehicleItem { int64 id = 1; int64 space_id = 2; string plate_no = 3; int32 vehicle_type = 4; string vin = 5; string engine_no = 6; string brand = 7; string color = 8; int64 household_uid = 9; int32 bind_type = 10; string displacement_unit = 11; double displacement = 12; int32 seat = 13; string household_name = 14; string household_phone = 15; int64 park_id = 16; string park_name = 17; string park_number = 18; string space_number = 19; string brand_pic = 20; } message VehicleListReply { int64 page = 1; int64 total = 2; repeated VehicleItem list = 3; }