refactor: UI 화면 통합 및 불필요한 파일 정리
- 모든 *_redesign.dart 파일을 기본 화면 파일로 통합 - 백업용 컨트롤러 파일들 제거 (*_controller.backup.dart) - 사용하지 않는 예제 및 테스트 파일 제거 - Clean Architecture 적용 후 남은 정리 작업 완료 - 테스트 코드 정리 및 구조 개선 준비 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -77,8 +77,8 @@ class HealthTestService {
|
||||
final equipments = await _equipmentService.getEquipments(page: 1, perPage: 5);
|
||||
results['equipments'] = {
|
||||
'success': true,
|
||||
'count': equipments.length,
|
||||
'sample': equipments.take(2).map((e) => {
|
||||
'count': equipments.items.length,
|
||||
'sample': equipments.items.take(2).map((e) => {
|
||||
'id': e.id,
|
||||
'name': e.name,
|
||||
'manufacturer': e.manufacturer,
|
||||
@@ -95,11 +95,11 @@ class HealthTestService {
|
||||
try {
|
||||
DebugLogger.log('입고지 API 체크 시작', tag: 'HEALTH_TEST');
|
||||
|
||||
final warehouses = await _warehouseService.getWarehouseLocations();
|
||||
final warehousesResponse = await _warehouseService.getWarehouseLocations();
|
||||
results['warehouses'] = {
|
||||
'success': true,
|
||||
'count': warehouses.length,
|
||||
'sample': warehouses.take(2).map((w) => {
|
||||
'count': warehousesResponse.items.length,
|
||||
'sample': warehousesResponse.items.take(2).map((w) => {
|
||||
'id': w.id,
|
||||
'name': w.name,
|
||||
'address': w.address.toString(),
|
||||
@@ -115,11 +115,11 @@ class HealthTestService {
|
||||
try {
|
||||
DebugLogger.log('회사 API 체크 시작', tag: 'HEALTH_TEST');
|
||||
|
||||
final companies = await _companyService.getCompanies();
|
||||
final companiesResponse = await _companyService.getCompanies();
|
||||
results['companies'] = {
|
||||
'success': true,
|
||||
'count': companies.length,
|
||||
'sample': companies.take(2).map((c) => {
|
||||
'count': companiesResponse.items.length,
|
||||
'sample': companiesResponse.items.take(2).map((c) => {
|
||||
'id': c.id,
|
||||
'name': c.name,
|
||||
'companyTypes': c.companyTypes.map((t) => companyTypeToString(t)).toList(),
|
||||
@@ -150,8 +150,8 @@ class HealthTestService {
|
||||
final equipments = await _equipmentService.getEquipments(page: 1, perPage: 10);
|
||||
return {
|
||||
'success': true,
|
||||
'count': equipments.length,
|
||||
'data': equipments.map((e) => e.toJson()).toList(),
|
||||
'count': equipments.items.length,
|
||||
'data': equipments.items.map((e) => e.toJson()).toList(),
|
||||
};
|
||||
} catch (e) {
|
||||
return {'success': false, 'error': e.toString()};
|
||||
@@ -159,11 +159,11 @@ class HealthTestService {
|
||||
|
||||
case 'warehouses':
|
||||
try {
|
||||
final warehouses = await _warehouseService.getWarehouseLocations();
|
||||
final warehousesResponse = await _warehouseService.getWarehouseLocations();
|
||||
return {
|
||||
'success': true,
|
||||
'count': warehouses.length,
|
||||
'data': warehouses.map((w) => {
|
||||
'count': warehousesResponse.items.length,
|
||||
'data': warehousesResponse.items.map((w) => {
|
||||
'id': w.id,
|
||||
'name': w.name,
|
||||
'address': w.address.toString(),
|
||||
@@ -179,8 +179,8 @@ class HealthTestService {
|
||||
final companies = await _companyService.getCompanies();
|
||||
return {
|
||||
'success': true,
|
||||
'count': companies.length,
|
||||
'data': companies.map((c) => c.toJson()).toList(),
|
||||
'count': companies.items.length,
|
||||
'data': companies.items.map((c) => c.toJson()).toList(),
|
||||
};
|
||||
} catch (e) {
|
||||
return {'success': false, 'error': e.toString()};
|
||||
|
||||
Reference in New Issue
Block a user