TF-4178 Add datasource/repository/interactor for create new label

This commit is contained in:
dab246
2025-11-26 16:32:53 +07:00
committed by Dat H. Pham
parent 8f1da20e54
commit 38c47ca373
10 changed files with 128 additions and 22 deletions
@@ -19,4 +19,14 @@ class LabelDatasourceImpl extends LabelDatasource {
throw error;
});
}
@override
Future<Label> createNewLabel(AccountId accountId, Label labelData) {
return Future.sync(() async {
return await _labelApi.createNewLabel(accountId, labelData);
}).catchError((error, stackTrace) async {
await _exceptionThrower.throwException(error, stackTrace);
throw error;
});
}
}