mirror of
https://github.com/Uuttssaavv/flutter-clean-architecture-riverpod.git
synced 2025-08-06 16:19:42 +08:00
22 lines
546 B
Dart
22 lines
546 B
Dart
import 'package:dartz/dartz.dart';
|
|
import 'package:flutter_project/shared/domain/models/response.dart';
|
|
import 'package:flutter_project/shared/exceptions/http_exception.dart';
|
|
|
|
abstract class NetworkService {
|
|
String get baseUrl;
|
|
|
|
Map<String, Object> get headers;
|
|
|
|
void updateHeader(Map<String, dynamic> data);
|
|
|
|
Future<Either<AppException, Response>> get(
|
|
String endpoint, {
|
|
Map<String, dynamic>? queryParameters,
|
|
});
|
|
|
|
Future<Either<AppException, Response>> post(
|
|
String endpoint, {
|
|
Map<String, dynamic>? data,
|
|
});
|
|
}
|