111
This commit is contained in:
@@ -89,4 +89,19 @@ class AssetService {
|
||||
queryParameters: params,
|
||||
);
|
||||
}
|
||||
|
||||
/// 获取每日盈亏数据
|
||||
Future<ApiResponse<Map<String, dynamic>>> getDailyProfit({
|
||||
required int year,
|
||||
required int month,
|
||||
}) async {
|
||||
final response = await _client.get<Map<String, dynamic>>(
|
||||
ApiEndpoints.dailyProfit,
|
||||
queryParameters: {'year': year, 'month': month},
|
||||
);
|
||||
if (response.success && response.data != null) {
|
||||
return ApiResponse.success(response.data!, response.message);
|
||||
}
|
||||
return ApiResponse.fail(response.message ?? '获取每日盈亏数据失败');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user