create project

This commit is contained in:
2026-05-19 11:46:42 +08:00
commit dcdf1f60b1
60 changed files with 9309 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import 'api_client.dart';
import 'package:flutter/foundation.dart';
class BillApi {
final ApiClient _client;
BillApi(this._client);
Future<Map<String, dynamic>> getBills({String? userId, String? familyId}) {
final params = <String, dynamic>{};
if (userId != null) params['userId'] = userId;
if (familyId != null) params['familyId'] = familyId;
return _client.get('/bills', params: params);
}
Future<Map<String, dynamic>> createBill(Map<String, dynamic> data) {
return _client.post('/bills', data: data);
}
}