syntax = "proto3"; // package声明符,用来防止不同的消息类型有命名冲突 package pb_v1; // 用于生成指定语言go的包名称 option go_package = "property-household/pb/v1"; message LoginRequest { string phone_encrypt = 1; string user_encrypt = 2; string phone_iv = 3; string user_iv = 4; string code = 5; } message HouseholdHouseInfo { int64 garden_id = 1; string garden_name = 2; int64 house_id = 3; string house_name = 4; int64 id = 5; // 住户在该房屋下的类型 1 业主 2 家人 3 租客 int32 user_type = 6; bool can_pay = 7; } message LoginReply { string phone = 1; int64 uid = 2; string nick_name = 3; string open_id = 4; string real_name = 5; string avatar = 6; repeated HouseholdHouseInfo list = 7; string openim_id = 8; string id_number = 9; } message HouseholdApplyRequest { int64 uid = 1; // 1业主 2家人 3租客 int32 user_type = 2; string phone = 3; string name = 4; int64 house_id = 5; // 1 身份证 2 护照 int32 id_type = 6; // 证件号 string id_number = 7; repeated string appendix = 8; int64 garden_id = 9; } message HouseholdApplyReply { int64 id = 1; } message HouseholdApproveRequest { int64 id = 1; bool status = 2; string feedback = 3; } message HouseholdApproveReply { } message HouseholdRefuseRequest { int64 house_id = 1; int64 garden_id = 2; int64 unit_id = 3; int64 building_id = 4; string feedback = 5; } message HouseholdRefuseReply { } message HouseholdListRequest { int64 garden_id = 1; int64 uid = 2; int64 page = 3; int64 page_size = 4; int32 approve_status = 5; int32 user_type = 6; string name = 7; } message HouseholdItem { int64 id = 1; // 1业主 2家人 3租客 int32 user_type = 2; string phone = 3; string name = 4; repeated string appendix = 5; // 1 身份证 2 护照 int32 id_type = 6; // 证件号 string id_number = 7; // 房号 string house_name = 8; int32 approve_status = 9; string garden_name = 10; int64 house_id = 11; int64 garden_id = 12; int64 uid = 13; } message HouseholdListReply { int64 page = 1; int64 total = 2; repeated HouseholdItem list = 3; } message RealNameAuthRequest { int64 uid = 1; string real_name = 2; string id_number = 3; int32 id_type = 4; } message RealNameAuthReply { } message UserUpdateNickNameRequest { int64 uid = 1; string nick_name = 2; } message UserUpdateNickNameReply { } // 删除未审核的申请(小区被删,房屋被删,或房屋号信息被改) message HouseholdDelApplyRequest { int64 id = 1; int64 house_id = 2; int64 garden_id = 3; int64 building_id = 4; int64 unit_id = 5; } message HouseholdDelApplyReply { } message HouseholdGardenNameChangeRequest { int64 garden_id = 1; string garden_name = 2; } message HouseholdGardenNameChangeReply { } message UserInfoRequest { int64 uid = 1; } message UserInfoReply { string real_name = 1; int32 id_type = 2; string id_number = 3; } message HouseholdUserListRequest { int64 page = 1; int64 page_size = 2; int64 garden_id = 3; int32 user_type = 6; string name = 7; } message HouseholdUserItem { int64 id = 1; // 1业主 2家人 3租客 int32 user_type = 2; string phone = 3; string name = 4; // 1 身份证 2 护照 int32 id_type = 5; // 证件号 string id_number = 6; string garden_name = 7; } message HouseholdUserListReply { int64 page = 1; int64 total = 2; repeated HouseholdUserItem list = 3; } message HouseholdHousesRequest { int64 uid = 1; bool for_rent = 2; } message HouseholdHousesReply { repeated HouseholdHouseInfo list = 1; } message HouseRentBaseConf { // 床 bool bed = 1; // 天然气 bool gas = 2; // 暖气 bool warm_gas = 3; // 宽带 bool broadband = 4; // 冰箱 bool refragerator = 5; // 衣柜 bool wardobe = 6; // 沙发 bool sofa = 7; // 空调 bool aircondition = 8; // 电视机 bool tv = 9; // 热水器 bool heater = 10; // 洗衣机 bool warshing = 11; } message HouseRentSpecialConf { // 智能门锁 bool intelligent_lock = 1; // wifi bool wifi = 2; // 近地铁 bool metro = 3; // 停车位 bool park_space = 4; // 独卫 bool independent_wc = 5; // 私人阳台 bool private_balcony = 6; // 首次出租 bool first_rent = 7; } message HouseRentApplyRequest { // 房屋id int64 house_id = 1; // 楼层 int64 layer = 2; // 房屋建筑面积 double house_area = 3; // 朝向 int32 direction = 4; // 几室 int64 room_count = 5; // 几厅 int64 hall_count = 6; // 几卫 int64 wc_count = 7; // 1 精装 2 简装 3 清水 int32 decorating = 8; // 联系人 string contacter = 9; // 联系人电话 string contact_phone = 10; // 1 月付 2 季付 3 半年付 4 年付 int32 pay_time_type = 11; // 1 整租 2 合租 3 转租 int32 rent_type = 12; // 1 全部 2 主卧 3 次卧 int32 room_type = 13; // 房间面积 double room_area = 14; // 月租 int64 rent_price = 15; // 押金 int64 desposit = 16; // 可入住时间 int64 in_time = 17; // 服务费 int64 service_price = 18; // 中介费 int64 intermediary_price = 19; // 基础设施 int64 base_conf = 20; // 特色配置 int64 special_conf = 21; // 简介 string desc = 22; // 房屋图片 repeated string house_pic = 23; // 房屋证件图片 repeated string cert_pic = 24; // 业主uid int64 household_uid = 25; // 是否有电梯 bool has_lift = 26; // 是否直接通过审核 bool approve = 27; // 小区id int64 garden_id = 28; // 纬度 double lat = 29; // 经度 double lnt = 30; } message HouseRentApplyReply { int64 id = 1; } message HouseRentUpdateRequest { int64 house_id = 1; // 楼层 int64 layer = 2; // 房屋建筑面积 double house_area = 3; // 朝向 int32 direction = 4; // 几室 int64 room_count = 5; // 几厅 int64 hall_count = 6; // 几卫 int64 wc_count = 7; // 1 精装 2 简装 3 清水 int32 decorating = 8; // 联系人 string contacter = 9; // 联系人电话 string contact_phone = 10; // 1 月付 2 季付 3 半年付 4 年付 int32 pay_time_type = 11; // 1 整租 2 合租 3 转租 int32 rent_type = 12; // 1 全部 2 主卧 3 次卧 int32 room_type = 13; // 房间面积 double room_area = 14; // 月租 int64 rent_price = 15; // 押金 int64 desposit = 16; // 可入住时间 int64 in_time = 17; // 服务费 int64 service_price = 18; // 中介费 int64 intermediary_price = 19; // 基础设施 int64 base_conf = 20; // 特色配置 int64 special_conf = 21; // 简介 string desc = 22; // 房屋图片 repeated string house_pic = 23; // 房屋证件图片 repeated string cert_pic = 24; // 是否有电梯 bool has_lift = 25; int64 garden_id = 26; int64 id = 27; // 纬度 double lat = 28; // 经度 double lnt = 30; } message HouseRentUpdateReply { } message HouseRentApproveRequest { int64 id = 1; int64 garden_id = 2; bool status = 3; string feedback = 4; } message HouseRentApproveReply { } message HouseRentDownRequest { int64 id = 1; int64 garden_id = 2; } message HouseRentDownReply { } message HouseRentListRequest { int64 garden_id = 1; string province_code = 2; string city_code = 3; string area_code = 4; string street_code = 5; int64 room_count = 6; int64 hall_count = 7; int64 wc_count = 8; int64 household_uid = 9; int64 rent_price_greater = 10; int64 rent_price_less = 11; int64 approve_status = 12; int64 page = 13; int64 page_size = 14; int64 base_conf = 15; int64 special_conf = 16; repeated int64 garden_ids = 17; } message HouseRentItem { // 房屋号 string house_name = 1; // 楼层 int64 layer = 2; // 房屋建筑面积 double house_area = 3; // 朝向 int32 direction = 4; // 几室 int64 room_count = 5; // 几厅 int64 hall_count = 6; // 几卫 int64 wc_count = 7; // 1 精装 2 简装 3 清水 int32 decorating = 8; // 联系人 string contacter = 9; // 联系人电话 string contact_phone = 10; // 1 月付 2 季付 3 半年付 4 年付 int32 pay_time_type = 11; // 1 整租 2 合租 3 转租 int32 rent_type = 12; // 1 全部 2 主卧 3 次卧 int32 room_type = 13; // 房间面积 double room_area = 14; // 月租 int64 rent_price = 15; // 押金 int64 desposit = 16; // 可入住时间 int64 in_time = 17; // 服务费 int64 service_price = 18; // 中介费 int64 intermediary_price = 19; // 基础设施 int64 base_conf = 20; // 特色配置 int64 special_conf = 21; // 简介 string desc = 22; // 房屋图片 repeated string house_pic = 23; // 房屋证件图片 repeated string cert_pic = 24; // 是否有电梯 bool has_lift = 25; // 小区id int64 garden_id = 26; // 租房id int64 id = 27; // 审核状态 1 待审 2 通过 3 未通过 4 已下架 int32 approve_status = 28; // 省份 string province = 29; // 城市 string city = 30; // 区域 string area = 31; // 街道 string street = 32; // 小区名称 string garden_name = 33; // 纬度 double lat = 34; // 经度 double lnt = 35; string addr = 36; int64 house_id = 37; string garden_desc = 38; int64 household_uid = 39; string real_name = 40; string phone = 41; } message HouseRentListReply { int64 page = 1; int64 total = 2; repeated HouseRentItem list = 3; } message GardenHouseRentListRequest { int64 garden_id = 1; string province_code = 2; string city_code = 3; string area_code = 4; string street_code = 5; int64 room_count = 6; int64 hall_count = 7; int64 wc_count = 8; int64 household_uid = 9; int64 rent_price_greater = 10; int64 rent_price_less = 11; int64 approve_status = 12; int64 page = 13; int64 page_size = 14; int64 base_conf = 15; int64 special_conf = 16; } message GardenHouseRentListReply { int64 page = 1; int64 total = 2; repeated HouseRentItem list = 3; } message HouseRentChangeFieldRequest { int64 garden_id = 1; int64 house_id = 2; int64 unit_id = 3; int64 room_count = 4; int64 hall_count = 5; bool has_lift = 6; double house_area = 7; int64 layer = 8; string garden_name = 9; double lnt = 10; double lat = 11; } message HouseRentChangeFieldReply { } message HouseholdWaitCountRequest { int64 garden_id = 1; int64 building_id = 2; int64 unit_id = 3; int64 house_id = 4; } message HouseholdWaitCountReply { int64 count = 1; } message UserWxPublicAddRequest { string open_id = 1; string union_id = 2; } message UserWxPublicAddReply { } message WxPublicEmptyUnionIdRequest { } message WxPublicEmptyUnionIdReply { } message GateQcodeRequest { bool visitor = 1; int64 garden_id = 2; int64 device_id = 3; int64 visitor_start = 4; int64 visitor_end = 5; int64 uid = 6; string visitor_phone = 7; string visitor_name = 8; string user_name = 9; string phone = 10; string comment = 11; } message GateQcodeReply { string qcode = 1; int64 id = 2; } message HouseholdDelHouseRequest { int64 house_id = 1; int64 household_uid = 2; int64 garden_id = 3; repeated int64 rent_ids = 4; } message HouseholdDelHouseReply { } message HouseRentAppointmentAddRequest { int64 garden_id = 1; int64 uid = 2; int64 rent_id = 3; string name = 4; string phone = 5; int32 gender = 6; int64 appointment_time = 7; } message HouseRentAppointmentAddReply { int64 id = 1; } message HouseRentAppointmentDelRequest { int64 garden_id = 1; int64 id = 2; repeated int64 rent_ids = 3; } message HouseRentAppointmentDelReply { } message HouseRentAppointmentListRequest { int64 garden_id = 1; int64 rent_id = 2; int64 uid = 3; int64 page = 4; int64 page_size = 5; string house_name = 6; string phone = 7; string name = 8; } message HouseRentAppointmentItem { int64 id = 1; int64 uid = 2; int64 rent_id = 3; string name = 4; string phone = 5; int32 gender = 6; int64 appointment_time = 7; string house_name = 8; double area = 9; int64 layer = 10; // 1 待受理,2 已受理,3 已拒绝,4 未到访,5已到访,6已过期 int32 status = 11; string garden_name = 12; int64 garden_id = 13; } message HouseRentAppointmentListReply { int64 page = 1; int64 total = 2; repeated HouseRentAppointmentItem list = 3; } message HouseRentAppointmentStatusRequest { int64 id = 1; //2 已受理,3 已拒绝,4 未到访,5已到访 int32 status = 2; int64 garden_id = 3; string feedback = 4; } message HouseRentAppointmentStatusReply { }