-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] 로고 및 피드 업로드 기능 구현 #34
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다.
리뷰 답장해주시면 감사하겠습니다!
@RestController | ||
@RequestMapping("/api/club") | ||
@RequiredArgsConstructor | ||
public class GcsController { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
결국 Club에 대한 도메인이라 Clubcontroller에 작성하거나, ClubImageUploadController 처럼 더 club이 기능을 강조하는 것이 어떨까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
전혀 생각 못한 부분인데 생각해 보니 그렇네요!
Clubcontroller 에서 다루는 클럽의 텍스트 데이터들을 다루는 것과 이미지 데이터를 다루는 부분은 성격이 조금 다른 것 같아서 ClubImageController 로 수정하였습니다~
|
||
@Service | ||
@RequiredArgsConstructor | ||
public class GcsService { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 또한 ClubImageUploadService나 ClubImageService로 도메인을 club으로 합치면 좋지 않을까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵 이부분도 위와 마찬가지로 ClubImageService로 변경하였습니다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Conflict 해결 확인했습니다~
#️⃣연관된 이슈
📝작업 내용
SecurityConfig에 GCS 인증 & storage 객체를 Bean에 등록하였음
컨트롤러에서 로고 업데이트인지 피드 업데이트인지에 대한 정보를 받고
기본적인 영상 업로드 전 전처리를 해 준 후
uploadFile을 호출하여 중복을 최소화 하였음
로고 이미지 업로드 확인
피드 이미지(2개) 업로드 확인