refactor: poster content

This commit is contained in:
yuhalog 2025-06-18 10:48:45 +09:00
parent ee9736bb9f
commit 379f690cdc
3 changed files with 9 additions and 7 deletions

View File

@ -57,7 +57,9 @@ subprojects {
implementation 'com.azure:azure-storage-blob:12.25.0'
implementation 'com.azure:azure-identity:1.11.1'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.3'
implementation 'com.fasterxml.jackson.core:jackson-core'
implementation 'com.fasterxml.jackson.core:jackson-databind'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'
implementation 'org.springframework.boot:spring-boot-starter-webflux'
}

View File

@ -152,12 +152,12 @@ public class BlobStorageServiceImpl implements BlobStorageService {
* @param files 검증할 파일
*/
private void validateImageFile(List<MultipartFile> files) {
for (MultipartFile file : files) {
// 파일 존재 여부 확인
if (file == null || file.isEmpty()) {
throw new BusinessException(ErrorCode.FILE_NOT_FOUND);
}
// 파일 존재 여부 확인
if (files == null || files.isEmpty()) {
throw new BusinessException(ErrorCode.FILE_NOT_FOUND);
}
for (MultipartFile file : files) {
// 파일 크기 확인
if (file.getSize() > maxFileSize) {
throw new BusinessException(ErrorCode.FILE_SIZE_EXCEEDED);

View File

@ -46,7 +46,7 @@ public class PythonAiPosterGenerator implements AiPosterGenerator {
// Python AI 서비스 호출
Map<String, Object> response = webClient
.post()
.uri(aiServiceBaseUrl + "/api/ai/poster")
.uri("http://localhost:5001" + "/api/ai/poster")
.header("Content-Type", "application/json")
.bodyValue(requestBody)
.retrieve()