import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/utils/network/base_model.dart'; import 'package:aku_new_community/utils/network/net_util.dart'; import 'package:aku_new_community/widget/others/user_tool.dart'; class PropertyFunc { ///根据房产id查询对应的预付款充值金额 static Future getDailyPaymentPrePay() async { BaseModel baseModel = await NetUtil().get(API.manager.dailyPaymentPrePay, params: { "estateId": UserTool.appProvider.selectedHouse!.estateId, }); if (baseModel.success) { return (baseModel.data as num).toDouble(); } else { return 0; } } ///根据房产id查询对应的未缴费金额 static Future getFindUnpaidAmount() async { BaseModel baseModel = await NetUtil().get(API.manager.findUnpaidAmount, params: { "estateId": UserTool.appProvider.selectedHouse!.estateId, }); if (baseModel.success) { return (baseModel.data as num).toDouble(); } else { return 0; } } }