11111
This commit is contained in:
27
lib/data/repositories/.gitkeep
Normal file
27
lib/data/repositories/.gitkeep
Normal file
@@ -0,0 +1,27 @@
|
||||
# Repository implementations directory
|
||||
# Create your repository implementations here
|
||||
# Example:
|
||||
#
|
||||
# class AuthRepositoryImpl implements AuthRepository {
|
||||
# final AuthRemoteDataSource remoteDataSource;
|
||||
# final UserLocalDataSource localDataSource;
|
||||
#
|
||||
# AuthRepositoryImpl({
|
||||
# required this.remoteDataSource,
|
||||
# required this.localDataSource,
|
||||
# });
|
||||
#
|
||||
# @override
|
||||
# Future<Either<Failure, LoginResponseModel>> login(LoginRequest request) async {
|
||||
# try {
|
||||
# final dto = LoginDto(...);
|
||||
# final responseDto = await remoteDataSource.login(dto);
|
||||
# final responseModel = _convertDtoToModel(responseDto);
|
||||
# return Right(responseModel);
|
||||
# } on ServerException catch (e) {
|
||||
# return Left(ServerFailure(e.message));
|
||||
# } on NetworkException catch (e) {
|
||||
# return Left(NetworkFailure(e.message));
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
Reference in New Issue
Block a user