2026-01-18 20:21:14 +08:00
|
|
|
import 'package:fpdart/fpdart.dart';
|
|
|
|
|
|
2026-01-11 19:42:22 +08:00
|
|
|
import '../../../../core/domain/entities/user_entity.dart';
|
2026-01-18 20:21:14 +08:00
|
|
|
import '../errors/auth_failure.dart';
|
2026-01-11 19:42:22 +08:00
|
|
|
|
|
|
|
|
abstract class AuthRepository {
|
2026-01-18 20:21:14 +08:00
|
|
|
Future<Either<AuthFailure, UserEntity>> login(
|
|
|
|
|
String username,
|
|
|
|
|
String password,
|
|
|
|
|
int sourceType,
|
|
|
|
|
);
|
2026-01-11 19:42:22 +08:00
|
|
|
}
|