2025-04-07 16:49:15 +03:30
|
|
|
import 'package:get/get.dart';
|
|
|
|
|
import 'package:rasadyar_app/domain/repository/user/user_repository.dart';
|
|
|
|
|
import 'package:rasadyar_app/infrastructure/di/di.dart';
|
|
|
|
|
|
|
|
|
|
class UserService extends GetxService {
|
|
|
|
|
late IUserRepository _userLocalStorage;
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
void onInit() {
|
|
|
|
|
return super.onInit();
|
2025-04-14 16:23:09 +03:30
|
|
|
// _userLocalStorage = di.get<UserRepository>();
|
2025-04-07 16:49:15 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future<bool> isUserAuthed() async {
|
|
|
|
|
return await _userLocalStorage.userAuthed();
|
|
|
|
|
}
|
|
|
|
|
}
|