syntax = "proto3"; // package声明符,用来防止不同的消息类型有命名冲突 package pb_v1; // 用于生成指定语言go的包名称 option go_package = "property-garden/pb/v1"; message ChargeConfAddRequest { int64 garden_id = 1; // 费用类型1 物业费 2 水费 3 电费 4 气费 int32 charge_type = 2; // 费用名称 string charge_name = 3; // 缴费时间类型 1 周期性缴 2 一次性 int32 charge_time_type = 4; // 账单生成周期 1 按月 2 按季度 3 半年 4 年 int32 bill_period = 5; // 账单周期计算方式 1自然周期 2 费用生效时间 int32 bill_period_type = 6; // 1 按房屋面积 2 按使用面积 3 固定费用 4 按使用量 5 固定费用 int32 charge_basis = 7; // 滞纳金开启关闭 bool late_fee_enable = 8; // 固定费用 int64 fix_amount = 9; // 固定费用别名 string fix_amount_name = 10; // 费用生效时间 int64 charge_effective_time = 11; // 单价 int64 unit_price = 12; // 账单生成后xx天开始算滞纳金 int64 late_fee_day = 13; // 滞纳金封顶天数 int64 late_fee_max_days = 14; // 滞纳金比例 1代表万分之1 int64 late_fee_percent = 15; } message ChargeConfAddReply { int64 id = 1; } message ChargeConfUpdateRequest { int64 garden_id = 1; // 费用类型1 物业费 2 水费 3 电费 4 气费 int32 charge_type = 2; // 费用名称 string charge_name = 3; // 缴费时间类型 1 周期性缴 2 一次性 int32 charge_time_type = 4; // 账单生成周期 1 按月 2 按季度 3 半年 4 年 int32 bill_period = 5; // 账单周期计算方式 1自然周期 2 费用生效时间 int32 bill_period_type = 6; // 1 按房屋面积 2 按使用面积 3 固定费用 4 按使用量 5 固定费用 int32 charge_basis = 7; // 滞纳金开启关闭 bool late_fee_enable = 8; // 固定费用 int64 fix_amount = 9; // 固定费用别名 string fix_amount_name = 10; // 费用生效时间 int64 charge_effective_time = 11; // 单价 int64 unit_price = 12; // 账单生成后xx天开始算滞纳金 int64 late_fee_day = 13; // 滞纳金封顶天数 int64 late_fee_max_days = 14; // 滞纳金比例 1代表万分之1 int64 late_fee_percent = 15; int64 id = 16; } message ChargeConfUpdateReply { ChargeConfUpdateRequest origin = 1; } message ChargeConfDelRequest { int64 id = 1; int64 garden_id = 2; } message ChargeConfDelReply { ChargeConfUpdateRequest origin = 1; } message ChargeBindRequest { int64 garden_id = 1; repeated int64 obj_ids = 2; int64 charge_id = 3; int64 start = 4; int64 end = 5; int64 vehicle_fee = 6; } message ChargeBindReply { } message ChargeUnbindRequest { int64 obj_id = 1; int64 garden_id = 2; int64 charge_id = 3; } message ChargeUnbindData { int64 id = 1; int64 gargen_id = 2; int64 charge_id = 3; int64 obj_id = 4; } message ChargeUnbindReply { ChargeUnbindData origin = 1; } message ChargeConfListRequest { int64 page = 1; int64 page_size = 2; int32 charge_type = 3; int32 charge_name = 4; int64 garden_id = 5; } message ChargeConfItem { int64 garden_id = 1; // 费用类型1 物业费 2 水费 3 电费 4 气费 int32 charge_type = 2; // 费用名称 string charge_name = 3; // 缴费时间类型 1 周期性缴 2 一次性 int32 charge_time_type = 4; // 账单生成周期 1 按月 2 按季度 3 半年 4 年 int32 bill_period = 5; // 账单周期计算方式 1自然周期 2 费用生效时间 int32 bill_period_type = 6; // 1 按房屋面积 2 按使用面积 3 固定费用 4 按使用量 5 固定费用 int32 charge_basis = 7; // 滞纳金开启关闭 bool late_fee_enable = 8; // 固定费用 int64 fix_amount = 9; // 固定费用别名 string fix_amount_name = 10; // 费用生效时间 int64 charge_effective_time = 11; // 单价 int64 unit_price = 12; // 账单生成后xx天开始算滞纳金 int64 late_fee_day = 13; // 滞纳金封顶天数 int64 late_fee_max_days = 14; // 滞纳金比例 1代表万分之1 int64 late_fee_percent = 15; int64 id = 16; } message ChargeConfListReply { int64 total = 1; int64 page = 2; repeated ChargeConfItem list = 3; } // 绑定了某项目的房屋列表 message ChargeHouseBindedListRequest { int64 garden_id = 1; int64 charge_id = 2; int64 page = 3; int64 page_size = 4; } message ChargeHouseData { int64 house_id = 1; // 门牌号 string house_number = 2; // 房屋号 string house_name = 3; int32 house_type = 4; int64 layer = 5; double house_area = 6; double house_used_area = 7; int32 house_status = 8; int64 start = 9; } message ChargeHouseBindedListReply { int64 page = 1; int64 total = 2; repeated ChargeHouseData list = 3; } // 未绑定某项目的房屋列表(对物业和水电:只要绑定了一种类型的项目,不管是否绑定本项目都不在该列表) message ChargeHouseNotBindListRequest { int64 garden_id = 1; int64 charge_id = 2; int64 page = 3; int64 page_size = 4; int64 building_id = 5; int64 unit_id = 6; int64 layer = 7; int64 house_id = 8; string house_number = 9; } message ChargeHouseNotBindListReply { int64 page = 1; int64 total = 2; repeated ChargeHouseData list = 3; } // 绑定了某项目的车位列表 message ChargeSpaceBindedListRequest { int64 garden_id = 1; int64 charge_id = 2; int64 page = 3; int64 page_size = 4; } message ChargeSpaceData { int64 space_id = 1; string space_number = 2; string park_name = 3; string park_number = 4; int32 space_type = 5; double space_area = 6; int32 space_status = 7; int64 start = 8; } message ChargeSpaceBindedListReply { int64 page = 1; int64 total = 2; repeated ChargeSpaceData list = 3; } // 未绑定某项目的车位列表(只要绑定了一种类型的项目,不管是否绑定本项目都不在该列表) message ChargeSpaceNotBindListRequest { int64 garden_id = 1; int64 charge_id = 2; int64 page = 3; int64 page_size = 4; } message ChargeSpaceNotBindListReply { int64 page = 1; int64 total = 2; repeated ChargeSpaceData list = 3; } // 绑定了某项目的车辆列表 message ChargeVehicleBindedListRequest { int64 garden_id = 1; int64 charge_id = 2; int64 page = 3; int64 page_size = 4; } message ChargeVehicleData { int64 vehicle_id = 1; string plate_no = 2; int32 vehicle_type = 3; string brand = 4; string displacement = 5; int32 seat = 6; int64 start = 7; int64 end = 8; bool is_custom = 9; int64 custom_fee = 10; } message ChargeVehicleBindedListReply { int64 page = 1; int64 total = 2; repeated ChargeVehicleData list = 3; } // 未绑定某项目的车辆列表(只要绑定了一种类型的项目,不管是否绑定本项目都不在该列表) message ChargeVehicleNotBindListRequest { int64 garden_id = 1; int64 charge_id = 2; int64 page = 3; int64 page_size = 4; } message ChargeVehicleNotBindListReply { int64 page = 1; int64 total = 2; repeated ChargeVehicleData list = 3; } // 收费中的房屋列表 message ChargeHouseGroupRequest { int64 page = 1; int64 page_size = 2; int64 garden_id = 3; int64 obj_id = 4; } message ChargeHouseGroupItem { int64 house_id = 1; string house_name = 2; int64 layer = 3; int32 house_type = 4; int32 house_status = 5; double house_area = 6; double house_used_area = 7; // 房屋与物业费的绑定id int64 house_property_bind_id=8; // 是否有欠费账单 bool has_unpay_bill = 9; } message ChargeHouseGroupReply { int64 page = 1; int64 total = 2; repeated ChargeHouseGroupItem list = 3; } // 收费中的车位列表 message ChargeSpaceGroupRequest { int64 page = 1; int64 page_size = 2; int64 garden_id = 3; int64 obj_id = 4; } message ChargeSpaceGroupItem { int64 space_id = 1; double space_area = 2; int32 space_type = 3; string space_number = 4; string park_number = 5; string park_name = 6; int32 space_status = 7; // 是否有欠费账单 bool has_unpay_bill = 8; // 车位与费用的绑定id int64 space_bind_id=9; } message ChargeSpaceGroupReply { int64 page = 1; int64 total = 2; repeated ChargeSpaceGroupItem list = 3; } // 收费中的车辆列表 message ChargeVehicleGroupRequest { int64 page = 1; int64 page_size = 2; int64 garden_id = 3; int64 obj_id = 4; } message ChargeVehicleGroupItem { int64 vehicle_id = 1; string plate_no = 2; string displacement = 3; int32 vehicle_type = 4; string brand = 5; int32 seat = 6; } message ChargeVehicleGroupReply { int64 page = 1; int64 total = 2; repeated ChargeVehicleGroupItem list = 3; } // 抄表相关 message PowerRecordAddRequest { int64 garden_id = 1; int64 house_id = 2; double last_amount = 3; double current_amount = 4; int64 start = 5; int64 end = 6; int64 read_at = 7; string comment = 8; int32 charge_type = 9; } message PowerRecordAddReply { } message PowerRecordUpdateRequest { int64 garden_id = 1; int64 house_id = 2; double last_amount = 3; double current_amount = 4; int64 start = 5; int64 end = 6; int64 read_at = 7; string comment = 8; int64 id = 9; int32 charge_type = 10; } message PowerRecordUpdateReply { PowerRecordUpdateRequest origin = 1; } message PowerRecordBatchAddRequest { int64 garden_id = 1; int32 charge_type = 2; repeated PowerRecordBatchData list = 3; } message PowerRecordBatchData { double last_amount = 1; double current_amount = 2; int64 start = 3; int64 end = 4; int64 read_at = 5; string comment = 6; string building_number = 7; int64 unit_number = 8; string house_number = 9; } message PowerRecordBatchAddReply { } message PowerRecordDelRequest { int64 garden_id = 1; int64 id = 2; } message PowerRecordDelReply { PowerRecordUpdateRequest origin = 1; } message PowerRecordListRequest { int64 house_id = 1; int32 charge_type = 2; int64 garden_id = 3; int32 pay_status = 4; int64 page = 5; int64 page_size = 6; } message PowerRecordItem { int64 id = 1; int32 charge_type = 2; double last_amount = 3; double current_amount = 4; int64 start = 5; int64 end = 6; int64 read_at = 7; string comment = 8; int64 house_id = 9; string house_name = 10; bool has_bill = 11; int64 created_at = 12; } message PowerRecordListReply { int64 total = 1; int64 page = 2; repeated PowerRecordItem list = 3; } message ChargeBillPayRequest { int64 garden_id = 1; repeated int64 bill_ids = 2; repeated int64 bind_ids = 3; int32 pay_type = 4; int64 should_pay_amount = 5; int64 pay_amount = 6; string comment = 7; } message ChargeBillPayReply { string order_id = 1; } // 欠费列表 message ChargeUnpayListRequest { int64 garden_id = 1; int64 obj_id = 2; int32 obj_type = 3; int64 page = 4; int64 page_size = 5; int64 charge_type = 6; int64 house_id = 7; int32 status = 8; } message ChargeUnpayItem { int64 bind_id = 1; int32 charge_type = 2; string charge_name = 3; int32 charge_time_type = 4; int64 bill_count = 5; int64 unpay_amount = 6; } message ChargeUnpayListReply { int64 page = 1; int64 total = 2; repeated ChargeUnpayItem list = 3; } // 查看费用,费项列表 message ChargeListRequest { int64 garden_id = 1; int64 obj_id = 2; int32 obj_type = 3; int64 page = 4; int64 page_size = 5; int32 charge_type = 6; } message ChargeItem { int64 bind_id = 1; int32 charge_type = 2; string charge_name = 3; int32 charge_time_type = 4; string created_at = 5; string start = 6; string end = 7; string status = 8; string desc = 9; bool has_bill = 10; } message ChargeListReply { int64 page = 1; int64 total = 2; repeated ChargeItem list = 3; } // 费项账单 message ChargeBillListRequest { int64 garden_id = 1; int64 bind_id = 2; int64 page = 3; int64 page_size = 4; int32 status = 5; } message ChargeBillItem { string start = 1; string end = 2; int32 charge_type = 3; string charge_name = 4; int64 amount = 5; double last_used = 6; double current_used = 7; int64 late_fee = 8; int64 bill_id = 9; string charge_desc = 10; int32 obj_type = 11; int64 obj_id = 12; string obj_name = 13; int64 late_days = 14; } message ChargeBillListReply { int64 total = 1; int64 page = 2; int32 charge_type = 3; string charge_name = 4; int64 should_pay_amount = 5; repeated ChargeBillItem list = 6; } // 应收账单中的对象列表 message ChargeBillObjListRequest { int64 garden_id = 1; int64 page = 2; int64 page_size = 4; } message ChargeBillObjItem { string obj_name = 1; int64 obj_id = 2; int32 obj_type = 3; int64 bill_count = 4; int64 should_pay_amount = 5; } message ChargeBillObjListReply { int64 total = 1; int64 page = 2; repeated ChargeBillObjItem list = 3; } // 对象的账单明细 message ChargeObjBillListRequest { int64 garden_id = 1; int64 obj_id = 2; int64 page = 3; int64 page_size = 4; int32 obj_type = 5; bool all = 6; string obj_name = 7; string charge_name = 8; int32 charge_type = 9; } message ChargeObjBillListReply { int64 total = 1; int64 page = 2; repeated ChargeBillItem list = 3; int64 should_pay_amount = 4; } // 变更时间 message ChargeTimeSetRequest { int64 garden_id = 1; int64 start = 2; int64 end = 3; int64 bind_id = 4; } message ChargeTimeSetReply { } message ChargeOrderTicketRequest { int64 garden_id = 1; string order_id = 2; } message ChargeOrderTicketItem { // 费用类型 int32 charge_type = 1; // 费用名称 string charge_name = 2; // 收费范围 string start = 3; string end = 4; // 房屋/车位/车辆 string obj_name = 5; // 支付时间 string pay_time = 6; // 单价 int64 unit_price = 7; // 固定费用 int64 fix_amount = 8; // 金额 不包含滞纳金 int64 amount = 9; // 滞纳金 int64 late_fee = 10; // 面积/用量 double area_used = 11; // 1 房屋 2 车位 3 车辆 int32 obj_type = 12; // 自定义费用 int64 custom_fee = 13; } message ChargeOrderTicketReply { // 备注 string comment = 1; // 应付总金额 包含滞纳金 int64 should_pay_amount = 2; // 账单小票条目 repeated ChargeOrderTicketItem list = 3; } // 预缴获取金额信息 message ChargePrePayInfoRequest { int64 garden_id = 1; int64 bind_id = 2; int64 months = 3; } message ChargePrePayInfoReply { string charge_name = 1; int32 charge_type = 2; string charge_desc = 3; int64 should_pay_amount = 4; int64 start = 5; int64 end = 6; } // 物业或车位费预缴 message ChargePrePayRequest { int64 garden_id = 1; int64 bind_id = 2; int64 months = 3; int64 should_pay_amount = 4; int64 pay_amount = 5; string comment = 6; int32 pay_type = 7; } message ChargePrePayReply { string order_id = 1; } // 已缴账单列表 message ChargePayedBillListRequest { int64 garden_id = 1; string obj_name = 2; int64 page = 3; int64 page_size = 4; int32 charge_type = 5; string charge_name = 6; int64 house_id = 7; int64 pay_time = 8; int32 obj_type = 9; } message ChargePayedBillItem { string start = 1; string end = 2; int32 charge_type = 3; string charge_name = 4; int64 amount = 5; double last_used = 6; double current_used = 7; int64 late_fee = 8; int64 bill_id = 9; string charge_desc = 10; string pay_time = 11; int32 pay_type = 12; string obj_name = 13; int32 obj_type = 14; } message ChargePayedBillListReply { int64 page = 1; int64 total = 2; repeated ChargePayedBillItem list = 3; } // 作废账单 message ChargeDelBillRequest { int64 garden_id = 1; int64 bill_id = 2; string del_reason = 3; } message ChargeDelBillReply { } // 恢复账单 message ChargeRecoverBillRequest { int64 garden_id = 1; int64 bill_id = 2; } message ChargeRecoverBillReply { } // 作废账单列表 message ChargeDelBillListRequest { int64 garden_id = 1; string obj_name = 2; int64 page = 3; int64 page_size = 4; int32 charge_type = 5; string charge_name = 6; int32 obj_type = 7; } message ChargeDelBillItem { string start = 1; string end = 2; int32 charge_type = 3; string charge_name = 4; int64 amount = 5; double last_used = 6; double current_used = 7; int64 late_fee = 8; int64 bill_id = 9; string charge_desc = 10; string pay_time = 11; int32 pay_type = 12; string obj_name = 13; string del_at = 14; string del_reason = 15; string household_name = 16; string household_phone = 17; int32 obj_type = 18; } message ChargeDelBillListReply { int64 page = 1; int64 total = 2; repeated ChargeDelBillItem list = 3; } // 缴费订单列表 message ChargeOrderListRequest { int64 garden_id = 1; string obj_name = 2; int64 page = 3; int64 page_size = 4; int32 pay_type = 5; string order_id = 6; int32 pay_status = 7; int64 uid = 8; } message ChargeOrderItem { string order_id = 1; string pay_time = 2; int32 pay_type = 3; int64 should_pay_amount = 4; int64 pay_amount = 5; string obj_name = 6; string paying_desc = 7; string transaction_id = 8; string comment = 9; // 1 待支付 2 已支付 int32 status = 10; // 账单数 int64 bill_count = 11; string desc = 12; } message ChargeOrderListReply { int64 page = 1; int64 total = 2; repeated ChargeOrderItem list = 3; } // 订单详情 message ChargeOrderInfoRequest { int64 garden_id = 1; string order_id = 2; } message ChargeOrderBillItem { string start = 1; string end = 2; int32 charge_type = 3; string charge_name = 4; int64 amount = 5; double last_used = 6; double current_used = 7; int64 late_fee = 8; int64 bill_id = 9; string charge_desc = 10; string obj_name = 13; } // 确认支付 message ChargeOrderPayRequest { int64 garden_id = 1; string order_id = 2; int64 pay_time = 3; string transaction_id = 4; int64 amount = 5; bool is_comfirm = 6; } message ChargeOrderPayReply { } // 取消订单 message ChargeOrderCancelRequest { int64 garden_id = 1; string order_id = 2; // true 未支付订单中用户主动取消,false 前端判断未支付时主动调接口删除 bool by_user = 3; } message ChargeOrderCancelReply { } message ChargeOrderInfoReply { repeated ChargeOrderBillItem list = 1; } // 物业套餐预缴设置 message PropertyPackageAddRequest { int64 garden_id = 1; // 1 按月 2 按文本 int32 package_type = 2; // 赠送月数 int64 give_months = 3; // 增送文本 string give_content = 4; // 购买月数 int64 pay_months = 5; bool enable = 6; } message PropertyPackageAddReply { int64 id = 1; } message PropertyPackageUpdateRequest { int64 garden_id = 1; // 1 按月 2 按文本 int32 package_type = 2; // 赠送月数 int64 give_months = 3; // 增送文本 string give_content = 4; // 购买月数 int64 pay_months = 5; bool enable = 6; int64 id = 7; } message PropertyPackageUpdateReply { PropertyPackageUpdateRequest origin = 1; } message PropertyPackageDelRequest { int64 garden_id = 1; int64 id = 2; } message PropertyPackageDelReply { PropertyPackageUpdateRequest origin = 1; } message PropertyPackageItem { // 1 按月 2 按文本 int32 package_type = 2; // 赠送月数 int64 give_months = 3; // 增送文本 string give_content = 4; // 购买月数 int64 pay_months = 5; bool enable = 6; int64 id = 7; } message PropertyPackageListRequest { int64 garden_id = 1; int64 page = 2; int64 page_size = 3; } message PropertyPackageListReply { int64 page = 1; int64 total = 2; repeated PropertyPackageItem list = 3; } message ChargeGenerateBillRequest { int64 garden_id = 1; int64 bind_id = 2; int64 end = 3; } message ChargeGenerateBillReply { } message ChargeUrgeSetRequest { int64 urge_day = 1; int32 urge_target = 2; int32 urge_msg_type = 3; int64 garden_id = 4; int64 id = 5; } message ChargeUrgeSetReply { } message ChargeUrgeInfoRequest { int64 garden_id = 1; } message ChargeUrgeInfoReply { int64 urge_day = 1; int32 urge_target = 2; int32 urge_msg_type = 3; int64 id = 4; } // 欠费缴费用户支付 message ChargeBillPayByHouseholdRequest { int64 garden_id = 1; repeated int64 bill_ids = 2; repeated int64 bind_ids = 3; int32 pay_type = 4; int64 should_pay_amount = 5; int64 pay_amount = 6; string comment = 7; int64 household_uid = 8; string input_ip = 9; string open_id = 10; // 是否为二维码收款 bool native = 11; } message ChargeBillPayByHouseholdReply { string order_id = 1; // 三方预支付信息 string prepay_info = 2; // 二维码,native 支付时有值 string code_url = 3; } // 物业或车位费 用户预缴 message ChargePrePayByHouseholdRequest { int64 garden_id = 1; int64 bind_id = 2; int64 months = 3; int64 should_pay_amount = 4; int64 pay_amount = 5; string comment = 6; int32 pay_type = 7; int64 household_uid = 8; string input_ip = 9; string open_id = 10; int64 package_id = 11; } message ChargePrePayByHouseholdReply { string order_id = 1; // 三方预支付信息 string prepay_info = 2; } message ChargeUrgeRequest { int64 garden_id = 1; int64 obj_id = 2; int32 obj_type = 3; int64 should_pay_amount = 4; } message ChargeUrgeReply { } message ChargeMonthInfoRequest { int64 garden_id = 1; int64 obj_id = 2; int64 obj_type = 3; int32 charge_type = 4; } message MonthInfo { int64 package_id = 1; // 缴费月数 int64 months = 2; // 赠送月数 int64 give_months = 3; // 赠送其他的描述 string give_text = 4; } message ChargeMonthInfoReply { int64 bind_id = 1; string desc = 2; repeated MonthInfo month_list = 3; }