mirror of
https://github.com/won-ktds/smarketing-backend.git
synced 2025-12-06 07:06:24 +00:00
refactor: poster content
This commit is contained in:
parent
ee9736bb9f
commit
379f690cdc
@ -57,7 +57,9 @@ subprojects {
|
|||||||
implementation 'com.azure:azure-storage-blob:12.25.0'
|
implementation 'com.azure:azure-storage-blob:12.25.0'
|
||||||
implementation 'com.azure:azure-identity:1.11.1'
|
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'
|
implementation 'org.springframework.boot:spring-boot-starter-webflux'
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -152,12 +152,12 @@ public class BlobStorageServiceImpl implements BlobStorageService {
|
|||||||
* @param files 검증할 파일
|
* @param files 검증할 파일
|
||||||
*/
|
*/
|
||||||
private void validateImageFile(List<MultipartFile> files) {
|
private void validateImageFile(List<MultipartFile> files) {
|
||||||
for (MultipartFile file : files) {
|
// 파일 존재 여부 확인
|
||||||
// 파일 존재 여부 확인
|
if (files == null || files.isEmpty()) {
|
||||||
if (file == null || file.isEmpty()) {
|
throw new BusinessException(ErrorCode.FILE_NOT_FOUND);
|
||||||
throw new BusinessException(ErrorCode.FILE_NOT_FOUND);
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
for (MultipartFile file : files) {
|
||||||
// 파일 크기 확인
|
// 파일 크기 확인
|
||||||
if (file.getSize() > maxFileSize) {
|
if (file.getSize() > maxFileSize) {
|
||||||
throw new BusinessException(ErrorCode.FILE_SIZE_EXCEEDED);
|
throw new BusinessException(ErrorCode.FILE_SIZE_EXCEEDED);
|
||||||
|
|||||||
@ -46,7 +46,7 @@ public class PythonAiPosterGenerator implements AiPosterGenerator {
|
|||||||
// Python AI 서비스 호출
|
// Python AI 서비스 호출
|
||||||
Map<String, Object> response = webClient
|
Map<String, Object> response = webClient
|
||||||
.post()
|
.post()
|
||||||
.uri(aiServiceBaseUrl + "/api/ai/poster")
|
.uri("http://localhost:5001" + "/api/ai/poster")
|
||||||
.header("Content-Type", "application/json")
|
.header("Content-Type", "application/json")
|
||||||
.bodyValue(requestBody)
|
.bodyValue(requestBody)
|
||||||
.retrieve()
|
.retrieve()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user