syntax = "proto3"; // package声明符,用来防止不同的消息类型有命名冲突 package pb_v1; // 用于生成指定语言go的包名称 option go_package = "property-household/pb/v1"; message BuildingAddRequest { // 小区id int64 garden_id = 1; // 楼栋编号 string building_number = 2; // 楼栋名 string building_name = 3; // 楼栋建筑面积 double building_area = 4; // 楼栋使用面积 double building_used_area = 5; // 备注 string comment = 6; } message BuildingAddReply { int64 id = 1; } message BuildingUpdateRequest { // id int64 id = 1; // 楼栋编号 string building_number = 2; // 楼栋名 string building_name = 3; // 楼栋建筑面积 double building_area = 4; // 楼栋使用面积 double building_used_area = 5; // 备注 string comment = 6; int64 garden_id = 7; } message BuildingUpdateReply { BuildingUpdateRequest origin = 1; } message BuildingDelRequest { int64 id = 1; int64 garden_id = 2; } message BuildingDelReply { BuildingUpdateRequest origin = 1; } message BuildingListRequest { string building_number = 1; int64 page = 2; int64 page_size = 3; int64 garden_id = 4; } message BuildingItem { // id int64 id = 1; // 楼栋编号 string building_number = 2; // 楼栋名 string building_name = 3; // 楼栋建筑面积 double building_area = 4; // 楼栋使用面积 double building_used_area = 5; // 备注 string comment = 6; int64 unit_count = 7; } message BuildingListReply { int64 total = 1; int64 page = 2; repeated BuildingItem list = 3; } message UnitAddRequest { int64 garden_id = 1; // 楼栋id int64 building_id = 2; // 单元编号 int64 unit_number = 3; // 单元名 string unit_name = 4; // 楼层数 int64 unit_layers = 5; bool has_lift = 6; } message UnitAddReply { int64 id = 1; } message UnitUpdateRequest { int64 id = 1; // int64 garden_id = 2; // 单元编号 int64 unit_number = 3; // 单元名 string unit_name = 4; // 楼层数 int64 unit_layers = 5; int64 building_id = 6; bool has_lift = 7; } message UnitUpdateReply { UnitUpdateRequest origin = 1; } message UnitDelRequest { int64 id = 1; int64 garden_id = 2; } message UnitDelReply { UnitUpdateRequest origin = 1; } message UnitListRequest { int64 unit_number = 1; int64 building_id = 2; int64 page = 3; int64 page_size = 4; int64 garden_id = 5; } message UnitItem { int64 id = 1; // 楼栋id int64 building_id = 2; // 单元编号 int64 unit_number = 3; // 单元名 string unit_name = 4; // 楼层数 int64 unit_layers = 5; string building_name = 6; } message UnitListReply { int64 total = 1; int64 page = 2; repeated UnitItem list = 3; } message HouseAddRequest { int64 garden_id = 1; int64 building_id = 2; // 单元id int64 unit_id = 3; // 门牌号 string house_number = 4; // 楼层 int64 layer = 5; // 几室 int64 room_count = 6; // 几厅 int64 hall_count = 7; // 房屋类型 1 住宅 2 公寓 3 商业 4 洋房 5 别墅 int64 house_type = 8; // 房屋建筑面积 double house_area = 9; // 房屋使用面积 double house_used_area = 10; } message HouseAddReply { int64 id = 1; } message HouseUpdateRequest { int64 id = 1; // 房屋使用面积 double house_used_area = 2; int64 garden_id = 3; // 门牌号 string house_number = 4; // 楼层 int64 layer = 5; // 几室 int64 room_count = 6; // 几厅 int64 hall_count = 7; // 房屋类型 1 住宅 2 公寓 3 商业 4 洋房 5 别墅 int64 house_type = 8; // 房屋建筑面积 double house_area = 9; int64 unit_id = 10; } message HouseUpdateReply { HouseUpdateRequest origin = 1; } message HouseDelRequest { int64 id = 1; int64 garden_id = 2; } message HouseDelReply { HouseUpdateRequest origin = 1; } message HouseListRequest { string house_number = 1; int64 building_id = 2; int64 unit_id = 3; int32 house_type = 4; int64 page = 5; int64 page_size = 6; int64 garden_id = 7; int32 house_status = 8; int64 layer = 9; int64 house_id = 10; } message HouseItem { int64 id = 1; int64 building_id = 2; // 单元id int64 unit_id = 3; // 门牌号 string house_number = 4; // 楼层 int64 layer = 5; // 几室 int64 room_count = 6; // 几厅 int64 hall_count = 7; // 房屋类型 1 住宅 2 公寓 3 商业 4 洋房 5 别墅 int64 house_type = 8; // 房屋建筑面积 double house_area = 9; // 房屋使用面积 double house_used_area = 10; string house_name = 11; // 房屋状态 1 未入住 2 已入住 3 已出租 int32 status = 12; } message HouseListReply { int64 total = 1; int64 page = 2; repeated HouseItem list = 3; } message BatchBuildingItem { // 备注 string comment = 1; // 楼栋编号 string building_number = 2; // 楼栋名 string building_name = 3; // 楼栋建筑面积 double building_area = 4; // 楼栋使用面积 double building_used_area = 5; } message BatchUnitItem { // 是否有电梯 bool has_lift = 1; // 楼栋编号 string building_number = 2; // 单元编号 int64 unit_number = 3; // 单元名 string unit_name = 4; // 楼层数 int64 unit_layers = 5; } message BatchHouseItem { // 房屋使用面积 double house_used_area = 1; string building_number = 2; // 单元编号 int64 unit_number = 3; // 门牌号 string house_number = 4; // 楼层 int64 layer = 5; // 几室 int64 room_count = 6; // 几厅 int64 hall_count = 7; // 房屋类型 1 住宅 2 公寓 3 商业 4 洋房 5 别墅 int64 house_type = 8; // 房屋建筑面积 double house_area = 9; } message BatchHouseAddRequest { int64 garden_id = 1; repeated BatchBuildingItem buildings = 2; repeated BatchUnitItem units = 3; repeated BatchHouseItem houses = 4; } message BatchHouseAddReply { } message HouseInfoRequest { int64 house_id = 1; int64 garden_id = 2; } message HouseInfoReply { int64 garden_id = 1; string building_number = 2; int64 unit_number = 3; string house_number = 4; string garden_name = 5; string province = 6; string city = 7; string area = 8; string street = 9; string comittee = 10; int64 layer = 11; double house_area = 12; double house_used_area = 13; int64 room_count = 14; // 几厅 int64 hall_count = 15; // 房屋类型 1 住宅 2 公寓 3 商业 4 洋房 5 别墅 int64 house_type = 16; bool garden_in_use = 17; string province_code = 18; string city_code = 19; string area_code = 20; string street_code = 21; string comittee_code = 22; int32 house_status = 23; int64 building_id = 24; int64 unit_id = 25; bool has_lift = 26; } message HouseholdUserData { int64 id = 1; string phone = 2; string nick_name = 3; string real_name = 4; string id_number = 5; int32 id_type = 6; string open_id = 7; string union_id = 8; string avatar = 9; string public_open_id = 10; } message HouseholdSyncRequest { int64 garden_id = 1; string open_id = 2; int64 uid = 3; int64 created_at = 4; int64 updated_at = 5; int32 user_type = 6; int64 house_id = 7; string building_number = 8; int64 unit_number = 9; string house_number = 10; int64 building_id = 11; int64 unit_id = 12; string appendix = 13; string feedback = 14; string phone = 15; string name = 16; int32 id_type = 17; string id_number = 18; int64 approved_at = 19; int64 id = 20; string public_open_id = 21; HouseholdUserData household_user = 22; } message HouseholdSyncReply { } message HouseholdChangeRequest { repeated int64 garden_ids = 1; int64 uid = 2; string phone = 15; string name = 16; int32 id_type = 17; string id_number = 18; string public_open_id = 19; string nick_name = 20; } message HouseholdChangeReply { } message GardenChangeCompanyRequest { int64 garden_id = 1; int64 cid = 2; } message GardenChangeCompanyReply { GardenChangeCompanyRequest origin = 1; } message GardenHouseRentSyncRequest { bool insert = 1; int64 garden_id = 2; bytes datas = 3; int64 increase = 4; } message GardenHouseRentSyncReply { } message SystemMsgAddRequest { int64 garden_id = 1; string content = 2; string code = 3; int64 uid = 4; } message SystemMsgAddReply { } message RepairStatisticSetRequest { int64 garden_id = 1; int32 handle_type = 2; // 为负数表示减少 int64 total_increase = 3; int64 finish_increase = 4; } message RepairStatisticSetReply { }