mirror of
https://github.com/immich-app/immich.git
synced 2025-05-30 19:54:52 -04:00
* refactor: user entity * chore: rebase fixes * refactor: remove int user Id * refactor: migrate store userId from int to string * refactor: rename uid to id * fix: migration * pr feedback --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
23 lines
585 B
Dart
23 lines
585 B
Dart
import 'package:immich_mobile/domain/interfaces/db.interface.dart';
|
|
import 'package:immich_mobile/domain/models/user.model.dart';
|
|
|
|
abstract interface class IUserRepository implements IDatabaseRepository {
|
|
Future<bool> insert(UserDto user);
|
|
|
|
Future<UserDto?> getByUserId(String id);
|
|
|
|
Future<List<UserDto?>> getByUserIds(List<String> ids);
|
|
|
|
Future<List<UserDto>> getAll({SortUserBy? sortBy});
|
|
|
|
Future<bool> updateAll(List<UserDto> users);
|
|
|
|
Future<UserDto> update(UserDto user);
|
|
|
|
Future<void> delete(List<String> ids);
|
|
|
|
Future<void> deleteAll();
|
|
}
|
|
|
|
enum SortUserBy { id }
|