123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- syntax = "proto3";
- // package声明符,用来防止不同的消息类型有命名冲突
- package pb_v1;
- // 用于生成指定语言go的包名称
- option go_package = "property-household-gateway/pb/v1";
- 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 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;
- }
- 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;
- }
- message ParkSpaceListReply {
- int64 total = 1;
- int64 page = 2;
- repeated ParkSpaceItem list = 3;
- }
|