syntax = "proto3"; // package声明符,用来防止不同的消息类型有命名冲突 package pb_v1; // 用于生成指定语言go的包名称 option go_package = "property-system-gateway/pb/v1"; message ParkAddRequest { string park_number = 1; string park_name = 2; string comment = 3; int64 garden_id = 4; int32 park_type = 5; } message ParkAddReply { int64 id = 1; } message ParkUpdateRequest { int64 id = 1; int64 garden_id = 2; string park_number = 3; string park_name = 4; string comment = 5; int32 park_type = 6; } message ParkUpdateReply { ParkUpdateRequest origin = 1; } message ParkDelRequest { int64 id = 1; int64 garden_id = 2; } message ParkDelReply { ParkUpdateRequest origin = 1; } message ParkListRequest { int64 garden_id = 1; } message ParkItem { int64 id = 1; int64 garden_id = 2; string park_number = 3; string park_name = 4; string comment = 5; int64 space_count = 6; string created_at = 7; int32 park_type = 8; } message ParkListReply { repeated ParkItem list = 1; } message ParkSpaceAddRequest { string space_number = 1; double space_area = 2; string comment = 3; int64 park_id = 4; int32 space_type = 5; int64 garden_id = 6; int64 house_id = 7; } message ParkSpaceAddReply { int64 id = 1; } message ParkSpaceUpdateRequest { string space_number = 1; double space_area = 2; string comment = 3; int64 park_id = 4; int32 space_type = 5; int64 id = 6; int64 garden_id = 7; int64 house_id = 8; } message ParkSpaceUpdateReply { ParkSpaceUpdateRequest origin = 1; } message ParkSpaceDelRequest { int64 id = 1; int64 garden_id = 2; } message ParkSpaceDelReply { ParkSpaceUpdateRequest origin = 1; } message ParkSpaceListRequest { int64 park_id = 1; int64 page = 2; int64 page_size = 3; int64 garden_id = 4; int32 space_type = 5; string space_number = 6; int64 house_id = 7; int64 household_uid = 8; int32 bind_type = 9; int64 bind_space_id = 10; } message ParkSpaceItem { string space_number = 1; double space_area = 2; string comment = 3; int64 park_id = 4; int32 space_type = 5; int64 id = 6; string created_at = 7; string park_number = 8; string park_name = 9; int32 park_type = 10; int64 house_id = 11; string house_name = 12; // 1 空闲 2 已售 3 已租 int32 status = 13; string plate_no = 14; } message ParkSpaceListReply { int64 total = 1; int64 page = 2; repeated ParkSpaceItem list = 3; }