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
@@ -9,6 +9,7 @@ import 'package:tmail_ui_user/features/labels/domain/repository/label_repository
import 'package:tmail_ui_user/features/labels/domain/usecases/get_all_label_interactor.dart';
import 'package:tmail_ui_user/features/mailbox_creator/domain/usecases/verify_name_interactor.dart';
import 'package:tmail_ui_user/main/exceptions/remote_exception_thrower.dart';
import 'package:uuid/uuid.dart';
class LabelInteractorBindings extends InteractorsBindings {
@override
@@ -18,7 +19,7 @@ class LabelInteractorBindings extends InteractorsBindings {
@override
void bindingsDataSourceImpl() {
Get.lazyPut(() => LabelApi(Get.find<HttpClient>()));
Get.lazyPut(() => LabelApi(Get.find<HttpClient>(), Get.find<Uuid>()));
Get.lazyPut(
() => LabelDatasourceImpl(
Get.find<LabelApi>(),