-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: 반려동물 정보 등록 API 기능 #257
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.
s3 짜느라 고생 많았다잇~ 가비 이번에 신기한거 다 체험해보노ㅋㅋㅋㅋ
|
||
@RestController | ||
@RequiredArgsConstructor | ||
@RequestMapping("/images") |
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.
ImageController라 하니깐 공용 image 처리하는거 같지 않나용
반려동물 controller에 있는게 더 좋을거 같아요
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.
이거 일단 4차 데모까지 사진 업로드 사용하는 게 여기밖에 없어서 사실상 공용 이미지 처리가 가능하긴 합니다🫠
이건 추후 리팩터링 해보죠
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.
근데 사실 이미지는 도메인 자체를 분리해서 이렇게 쓰는것도 괜찮은듯요
backend/src/main/java/zipgo/image/infrastructure/aws/s3/S3PetImageClient.java
Show resolved
Hide resolved
|
||
String image, |
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.
여기 14번째 줄은 붙치고 15번째 아래는 개행 아닌가용
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.
엇 저는 명시적으로 띄워주는 걸로 생각했어요
우리 엔티티 필드 각각 개행하듯이요!
아래는 개행할게요~!
backend/src/test/java/zipgo/image/presentaion/ImageControllerTest.java
Outdated
Show resolved
Hide resolved
backend/src/test/java/zipgo/image/presentaion/ImageControllerTest.java
Outdated
Show resolved
Hide resolved
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.
수고했어!!!
근데 왜 어프룹이 안되징..
backend/src/main/java/zipgo/pet/presentation/dto/request/CreatePetRequest.java
Show resolved
Hide resolved
private final ImageClient imageClient; | ||
|
||
public String save(MultipartFile image) { | ||
UUID uuid = UUID.randomUUID(); |
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.
맞아요!! 일단 사진이 사용되는 곳이 여기 하나라서 일단 이렇게 만들었어요 🫠
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 | ||
@RequiredArgsConstructor | ||
@RequestMapping("/images") |
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.
근데 사실 이미지는 도메인 자체를 분리해서 이렇게 쓰는것도 괜찮은듯요
backend/src/main/java/zipgo/pet/presentation/dto/request/CreatePetRequest.java
Show resolved
Hide resolved
backend/src/main/java/zipgo/pet/presentation/dto/request/CreatePetRequest.java
Outdated
Show resolved
Hide resolved
@Configuration | ||
@EnableConfigurationProperties({ | ||
KakaoCredentials.class, | ||
JwtCredentials.class, | ||
AwsS3Credentials.class | ||
}) |
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.
가즈아ㅏㅏ
KakaoCredentials.class, | ||
JwtCredentials.class, | ||
AwsS3Credentials.class | ||
}) |
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.
👍🏻
📄 Summary
🙋🏻 More
사진 업로드 API와 반려동물 등록 API 두개를 분리하였음
S3 업로드는 캠퍼스 EC2 가서 테스트 가능....
700라인 미안해요..