번호 자동 부여 대응 및 API 공통 처리 보강

This commit is contained in:
JiWoong Sul
2025-10-23 14:02:31 +09:00
parent 09c31b2503
commit 7e933a2dda
55 changed files with 948 additions and 586 deletions

View File

@@ -26,8 +26,7 @@ class AuthRepositoryRemote implements AuthRepository {
},
options: Options(responseType: ResponseType.json),
);
final json = (response.data?['data'] as Map<String, dynamic>?) ?? {};
return AuthSessionDto.fromJson(json).toEntity();
return AuthSessionDto.fromJson(_api.unwrapAsMap(response)).toEntity();
}
@override
@@ -37,7 +36,6 @@ class AuthRepositoryRemote implements AuthRepository {
data: {'refresh_token': refreshToken},
options: Options(responseType: ResponseType.json),
);
final json = (response.data?['data'] as Map<String, dynamic>?) ?? {};
return AuthSessionDto.fromJson(json).toEntity();
return AuthSessionDto.fromJson(_api.unwrapAsMap(response)).toEntity();
}
}