Skip to content

[Feat] #51 공지사항 및 분실물 수정(이미지, 컨텐츠)#55

Merged
5hseok merged 1 commit intodevfrom
notice-lost-#51
May 25, 2025
Merged

[Feat] #51 공지사항 및 분실물 수정(이미지, 컨텐츠)#55
5hseok merged 1 commit intodevfrom
notice-lost-#51

Conversation

@aeeengsungwoo
Copy link
Copy Markdown
Collaborator

✨ Related Issues

📌 Tasks

공지사항, 분실물 데이터 수정 기능 추가
이미지 추가 및 이미지 삭제 가능

💬 Additional Notes

기존 Edit 코드는 전부 삭제하고, Update로 수정했습니다.
Edit은 내부 데이터에 대해 수정 삭제가 한 트랜잭션에서 구현되지 않았음.
한 트랜잭션에서 삭제할 url + 추가할 이미지 파일을 받아 삭제와 추가를 한번에 구현
내부 정보도 수정 가능

.filter(image -> image.getImageUrl().equals(deleteUrl))
.forEach(BaseEntity::delete);
}
getLost.setLost(updateLostRequestDto);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

코드 가독성이 좋지 않은 것 같네요....

getLost.setLost로는 무슨 코드인지 알기 어려워용

나중에 수정하는 걸로 합시다

@5hseok 5hseok merged commit 75b0777 into dev May 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat] 공지, 분실물 이미지 추가 API 구현

2 participants