TF-4243 Add datasource/repository/interactor for delete a label feature

This commit is contained in:
dab246
2026-01-12 15:22:54 +07:00
committed by Dat H. Pham
parent 5914877b1b
commit 327d05d20b
7 changed files with 86 additions and 0 deletions
@@ -31,4 +31,11 @@ class LabelDatasourceImpl extends LabelDatasource {
return await _labelApi.editLabel(accountId, labelRequest);
}).catchError(_exceptionThrower.throwException);
}
@override
Future<void> deleteLabel(AccountId accountId, Label label) {
return Future.sync(() async {
return await _labelApi.deleteLabel(accountId, label);
}).catchError(_exceptionThrower.throwException);
}
}