11111
This commit is contained in:
25
lib/data/datasources/.gitkeep
Normal file
25
lib/data/datasources/.gitkeep
Normal file
@@ -0,0 +1,25 @@
|
||||
# Data sources directory
|
||||
# Create your remote data sources here following this pattern:
|
||||
#
|
||||
# abstract class YourRemoteDataSource {
|
||||
# Future<YourDto> yourMethod(YourRequest request);
|
||||
# }
|
||||
#
|
||||
# class YourRemoteDataSourceImpl implements YourRemoteDataSource {
|
||||
# final ApiClient apiClient;
|
||||
#
|
||||
# YourRemoteDataSourceImpl({required this.apiClient});
|
||||
#
|
||||
# @override
|
||||
# Future<YourDto> yourMethod(YourRequest request) async {
|
||||
# try {
|
||||
# final response = await apiClient.post(
|
||||
# '/your-endpoint',
|
||||
# data: request.toJson(),
|
||||
# );
|
||||
# // Handle response and return DTO
|
||||
# } on DioException catch (e) {
|
||||
# // Handle errors
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
Reference in New Issue
Block a user