feat(mobile): trash and delete action (#19681)

* feat(mobile): trash and delete action

* fix lint
This commit is contained in:
Daimolean 2025-07-03 01:26:07 +08:00 committed by GitHub
parent b8e67d0ef9
commit a644cabab6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 138 additions and 4 deletions

View file

@ -93,6 +93,16 @@ class ActionService {
);
}
Future<void> trash(List<String> remoteIds) async {
await _assetApiRepository.delete(remoteIds, false);
await _remoteAssetRepository.trash(remoteIds);
}
Future<void> delete(List<String> remoteIds) async {
await _assetApiRepository.delete(remoteIds, true);
await _remoteAssetRepository.delete(remoteIds);
}
Future<bool> editLocation(
List<String> remoteIds,
BuildContext context,