feat: 장비 관리 API 연동 구현
- Equipment 관련 DTO 모델 생성 (Request/Response/List/History/In/Out/IO) - EquipmentRemoteDataSource 구현 (10개 API 엔드포인트) - EquipmentService 비즈니스 로직 구현 - Controller를 ChangeNotifier 패턴으로 개선 - 장비 목록 화면에 Provider 패턴 및 무한 스크롤 적용 - 장비 입고 화면 API 연동 및 비동기 처리 - DI 컨테이너에 Equipment 관련 의존성 등록 - API/Mock 데이터 소스 전환 가능 (Feature Flag) - API 통합 진행 상황 문서 업데이트
This commit is contained in:
@@ -5,8 +5,10 @@ import '../core/config/environment.dart';
|
||||
import '../data/datasources/remote/api_client.dart';
|
||||
import '../data/datasources/remote/auth_remote_datasource.dart';
|
||||
import '../data/datasources/remote/dashboard_remote_datasource.dart';
|
||||
import '../data/datasources/remote/equipment_remote_datasource.dart';
|
||||
import '../services/auth_service.dart';
|
||||
import '../services/dashboard_service.dart';
|
||||
import '../services/equipment_service.dart';
|
||||
|
||||
/// GetIt 인스턴스
|
||||
final getIt = GetIt.instance;
|
||||
@@ -30,6 +32,9 @@ Future<void> setupDependencies() async {
|
||||
getIt.registerLazySingleton<DashboardRemoteDataSource>(
|
||||
() => DashboardRemoteDataSourceImpl(getIt()),
|
||||
);
|
||||
getIt.registerLazySingleton<EquipmentRemoteDataSource>(
|
||||
() => EquipmentRemoteDataSourceImpl(),
|
||||
);
|
||||
|
||||
// 서비스
|
||||
getIt.registerLazySingleton<AuthService>(
|
||||
@@ -38,6 +43,9 @@ Future<void> setupDependencies() async {
|
||||
getIt.registerLazySingleton<DashboardService>(
|
||||
() => DashboardServiceImpl(getIt()),
|
||||
);
|
||||
getIt.registerLazySingleton<EquipmentService>(
|
||||
() => EquipmentService(),
|
||||
);
|
||||
|
||||
// 리포지토리
|
||||
// TODO: Repositories will be registered here
|
||||
|
||||
Reference in New Issue
Block a user