mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-09-11 17:47:21 +00:00
31 lines
824 B
Dart
31 lines
824 B
Dart
import 'package:dartz/dartz.dart';
|
|
|
|
import 'package:app_flowy/workspace/domain/i_user.dart';
|
|
import 'package:app_flowy/workspace/infrastructure/repos/user_repo.dart';
|
|
export 'package:app_flowy/workspace/domain/i_user.dart';
|
|
export 'package:app_flowy/workspace/infrastructure/repos/user_repo.dart';
|
|
|
|
class IUserImpl extends IUser {
|
|
UserRepo repo;
|
|
IUserImpl({
|
|
required this.repo,
|
|
});
|
|
|
|
@override
|
|
Future<Either<Unit, WorkspaceError>> deleteWorkspace(String workspaceId) {
|
|
// TODO: implement deleteWorkspace
|
|
throw UnimplementedError();
|
|
}
|
|
|
|
@override
|
|
Future<Either<UserDetail, UserError>> fetchUserDetail(String userId) {
|
|
return repo.fetchUserDetail(userId: userId);
|
|
}
|
|
|
|
@override
|
|
Future<Either<Unit, UserError>> signOut() {
|
|
// TODO: implement signOut
|
|
throw UnimplementedError();
|
|
}
|
|
}
|