15 lines
406 B
Dart
15 lines
406 B
Dart
import 'package:fpdart/fpdart.dart';
|
|
import 'package:maibu_satabot_v2/core/error/failure.dart';
|
|
import 'package:maibu_satabot_v2/features/v2/my/domain/repositories/my_repository.dart';
|
|
|
|
/// 清除缓存用例
|
|
class ClearCacheUseCase {
|
|
ClearCacheUseCase(this._repository);
|
|
|
|
final MyRepository _repository;
|
|
|
|
Future<Either<Failure, bool>> call() async {
|
|
return await _repository.clearCache();
|
|
}
|
|
}
|