feat: 대규모 코드베이스 개선 - 백엔드 통합성 강화 및 UI 일관성 완성
- CLAUDE.md 대폭 개선: 개발 가이드라인 및 프로젝트 상태 문서화 - 백엔드 API 통합: 모든 엔티티 간 Foreign Key 관계 완벽 구현 - UI 일관성 강화: shadcn_ui 컴포넌트 표준화 적용 - 데이터 모델 개선: DTO 및 모델 클래스 백엔드 스키마와 100% 일치 - 사용자 관리: 회사 연결, 중복 검사, 입력 검증 기능 추가 - 창고 관리: 우편번호 연결, 중복 검사 기능 강화 - 회사 관리: 우편번호 연결, 중복 검사 로직 구현 - 장비 관리: 불필요한 카테고리 필드 제거, 벤더-모델 관계 정리 - 우편번호 시스템: 검색 다이얼로그 Provider 버그 수정 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -110,6 +110,7 @@ class ZipcodeRepositoryImpl implements ZipcodeRepository {
|
||||
final response = await _apiClient.dio.get(
|
||||
ApiEndpoints.zipcodes,
|
||||
queryParameters: {
|
||||
'page': 1,
|
||||
'sido': sido,
|
||||
'limit': 1000, // 충분히 큰 값으로 모든 구 가져오기
|
||||
},
|
||||
@@ -140,12 +141,31 @@ class ZipcodeRepositoryImpl implements ZipcodeRepository {
|
||||
final response = await _apiClient.dio.get(
|
||||
ApiEndpoints.zipcodes,
|
||||
queryParameters: {
|
||||
'page': 1,
|
||||
'limit': 1000, // 충분히 큰 값으로 모든 시도 가져오기
|
||||
},
|
||||
);
|
||||
|
||||
print('=== getAllSido API 응답 ===');
|
||||
print('Status Code: ${response.statusCode}');
|
||||
print('Response Type: ${response.data.runtimeType}');
|
||||
|
||||
if (response.data is Map<String, dynamic>) {
|
||||
print('Response Data Keys: ${(response.data as Map).keys.toList()}');
|
||||
final listResponse = ZipcodeListResponse.fromJson(response.data);
|
||||
print('총 우편번호 데이터 개수: ${listResponse.items.length}');
|
||||
print('전체 카운트: ${listResponse.totalCount}');
|
||||
print('현재 페이지: ${listResponse.currentPage}');
|
||||
print('총 페이지: ${listResponse.totalPages}');
|
||||
|
||||
// 첫 3개 아이템 출력
|
||||
if (listResponse.items.isNotEmpty) {
|
||||
print('첫 3개 우편번호 데이터:');
|
||||
for (int i = 0; i < 3 && i < listResponse.items.length; i++) {
|
||||
final item = listResponse.items[i];
|
||||
print(' [$i] 우편번호: ${item.zipcode}, 시도: "${item.sido}", 구: "${item.gu}", 기타: "${item.etc}"');
|
||||
}
|
||||
}
|
||||
|
||||
// 중복 제거하고 시도 목록만 추출
|
||||
final sidoSet = <String>{};
|
||||
@@ -154,11 +174,15 @@ class ZipcodeRepositoryImpl implements ZipcodeRepository {
|
||||
}
|
||||
|
||||
final sidoList = sidoSet.toList()..sort();
|
||||
print('추출된 시도 목록: $sidoList');
|
||||
print('시도 개수: ${sidoList.length}');
|
||||
return sidoList;
|
||||
}
|
||||
|
||||
print('예상치 못한 응답 형식');
|
||||
return [];
|
||||
} on DioException catch (e) {
|
||||
print('getAllSido API 오류: ${e.message}');
|
||||
throw _handleError(e);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user