syntax = "proto3"; // package声明符,用来防止不同的消息类型有命名冲突 package pb_v1; // 用于生成指定语言go的包名称 option go_package = "property-household/pb/v1"; message GardenInfosRequest { repeated int64 ids = 1; } message GardenItem { // 物业公司id int64 cid = 1; // 省 string province = 2; string province_code = 3; // 市 string city = 4; string city_code = 5; // 区 string area = 6; string area_code = 7; // 街道 string street = 8; string street_code = 9; // 社区 string committee = 10; string committee_code = 11; // 小区名字 string garden_name = 12; // 小区地址 string garden_addr = 13; // 物业联系人 string property_person = 14; // 物业联系人手机号 string property_phone = 15; int64 id = 16; string garden_pic = 17; string garden_desc = 18; bool in_use = 19; // 经度 double lnt = 20; // 纬度 double lat = 21; repeated string appendix = 22; int32 status = 23; string feedback = 24; int32 pay_mode = 25; string mch_id = 26; } message GardenInfosReply { repeated GardenItem list = 1; } message GardenAddRequest { // 物业公司id int64 cid = 1; // 省 string province = 2; string province_code = 3; // 市 string city = 4; string city_code = 5; // 区 string area = 6; string area_code = 7; // 街道 string street = 8; string street_code = 9; // 社区 string committee = 10; string committee_code = 11; // 小区名字 string garden_name = 12; // 小区地址 string garden_addr = 13; // 物业联系人 string property_person = 14; // 物业联系人手机号 string property_phone = 15; // 免费小区个数 int32 free_garden_count = 16; string garden_pic = 17; string garden_desc = 18; } message GardenAddReply { int64 id = 1; } message GardenListRequest { int64 page = 1; int64 page_size = 2; int64 cid = 3; string committee_code = 4; } message GardenListReply { int64 page = 1; int64 total = 2; repeated GardenItem list = 3; } message GardenUpdateRequest { // id int64 id = 1; // 省 string province = 2; string province_code = 3; // 市 string city = 4; string city_code = 5; // 区 string area = 6; string area_code = 7; // 街道 string street = 8; string street_code = 9; // 社区 string committee = 10; string committee_code = 11; // 小区名字 string garden_name = 12; // 小区地址 string garden_addr = 13; // 物业联系人 string property_person = 14; // 物业联系人手机号 string property_phone = 15; int64 cid = 16; string garden_pic = 17; string garden_desc = 18; } message GardenUpdateReply { GardenUpdateRequest origin = 1; } message GardenDelRequest { int64 id = 1; int64 cid = 2; } message GardenDelReply { GardenUpdateRequest origin = 1; }