feat : request tagging

This commit is contained in:
2025-08-05 14:48:47 +03:30
parent 7b8cfb5ae9
commit 59e6d621cf
19 changed files with 318 additions and 66 deletions

View File

@@ -1,3 +1,4 @@
import 'package:rasadyar_livestock/data/model/response/address/address.dart';
import 'package:rasadyar_livestock/data/model/response/auth/auth_response_model.dart';
import 'package:rasadyar_livestock/data/model/response/captcha/captcha_response_model.dart';
@@ -11,4 +12,6 @@ abstract class AuthRepository {
Future<bool> hasAuthenticated();
Future<AuthResponseModel?> loginWithRefreshToken({required Map<String, dynamic> authRequest});
}

View File

@@ -1,4 +1,6 @@
import 'package:rasadyar_livestock/data/data_source/remote/auth/auth_remote.dart';
import 'package:rasadyar_livestock/data/data_source/remote/livestock/livestock_remote.dart';
import 'package:rasadyar_livestock/data/model/response/address/address.dart';
import 'package:rasadyar_livestock/data/model/response/auth/auth_response_model.dart';
import 'package:rasadyar_livestock/data/model/response/captcha/captcha_response_model.dart';
@@ -7,7 +9,8 @@ import 'auth_repository.dart';
class AuthRepositoryImp implements AuthRepository {
final AuthRemoteDataSource authRemote;
AuthRepositoryImp(this.authRemote);
AuthRepositoryImp({required this.authRemote});
@override
Future<AuthResponseModel?> login({required Map<String, dynamic> authRequest}) async =>
@@ -34,4 +37,6 @@ class AuthRepositoryImp implements AuthRepository {
Future<bool> hasAuthenticated() async {
return await authRemote.hasAuthenticated();
}
}