2026-02-27 18:36:21 +08:00
|
|
|
import 'package:dio/dio.dart';
|
|
|
|
|
|
|
|
|
|
abstract class IApiClient {
|
2026-03-30 11:37:41 +08:00
|
|
|
Future<Response<T>> get<T>(
|
|
|
|
|
String path, {
|
|
|
|
|
Map<String, String>? queryParameters,
|
|
|
|
|
Options? options,
|
|
|
|
|
});
|
2026-02-27 18:36:21 +08:00
|
|
|
Future<Response<T>> post<T>(String path, {dynamic data, Options? options});
|
2026-03-23 14:25:47 +08:00
|
|
|
Future<Response<T>> put<T>(String path, {dynamic data, Options? options});
|
2026-02-27 18:36:21 +08:00
|
|
|
Future<Response<T>> patch<T>(String path, {dynamic data, Options? options});
|
|
|
|
|
Future<Response<T>> delete<T>(String path, {dynamic data, Options? options});
|
2026-03-07 17:30:20 +08:00
|
|
|
Future<Stream<String>> getSseLines(
|
|
|
|
|
String path, {
|
|
|
|
|
Map<String, String>? headers,
|
|
|
|
|
});
|
2026-02-27 18:36:21 +08:00
|
|
|
}
|