mirror of
https://github.com/immich-app/immich.git
synced 2025-04-25 13:24:51 +02:00
* refactor(mobile): asset provider * wip * wip: delete local assets * wip: delete remote assets * wip: deletion logic * refactor * pr feedback
26 lines
666 B
Dart
26 lines
666 B
Dart
import 'package:immich_mobile/entities/user.entity.dart';
|
|
import 'package:immich_mobile/interfaces/database.interface.dart';
|
|
|
|
abstract interface class IUserRepository implements IDatabaseRepository {
|
|
Future<User?> get(String id);
|
|
|
|
Future<List<User>> getByIds(List<String> ids);
|
|
|
|
Future<List<User>> getAll({bool self = true, UserSort? sortBy});
|
|
|
|
/// Returns all users whose assets can be accessed (self+partners)
|
|
Future<List<User>> getAllAccessible();
|
|
|
|
Future<List<User>> upsertAll(List<User> users);
|
|
|
|
Future<User> update(User user);
|
|
|
|
Future<void> deleteById(List<int> ids);
|
|
|
|
Future<User> me();
|
|
|
|
Future<void> clearTable();
|
|
}
|
|
|
|
enum UserSort { id }
|