-
Notifications
You must be signed in to change notification settings - Fork 0
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
#105 [refactor] multipart/form을 file 과 json으로 분리 #108
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.
작업하시느라 고생하셨습니다!
코맨트 확인해주세요!
HairShop hairShop, | ||
Portfolio portfolio, |
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.
p2
도메인을 바로 사용하는 것이 아닌 HairShopDto , PortfolioDto 만들어서 사용해주세요!
@@ -79,10 +75,11 @@ public SuccessResponse<List<RegionResponse>> getRegionList() { | |||
@PostMapping(value = "/signup/designer", consumes = {MediaType.APPLICATION_JSON_VALUE, MediaType.MULTIPART_FORM_DATA_VALUE}) | |||
SuccessResponse<UserCreateResponse> createDesigner( | |||
@Parameter(hidden = true) @KakaoCode String kakaoCode, | |||
@ModelAttribute DesignerCreateRequest request, | |||
@RequestPart MultipartFile profileImg, | |||
@RequestPart DesignerCreateRequest request, |
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.
p3
해당 부분을 request가 아닌 disignerInfo와 같은 변수명은 어떨까요?
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.
수고하셨습니다!!! 저는 다른 방법으로 구현 했는데 이방법 한번 잘 보겠습니다
package com.moddy.server.controller.designer.dto; | ||
|
||
import lombok.*; | ||
|
||
@Builder | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Getter | ||
@ToString | ||
public class HairShopDTO { | ||
|
||
private String name; | ||
|
||
private String address; | ||
|
||
private String detailAddress; | ||
} |
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.
p2 :
DTO Record가 아닌 class로 만든 이유가 있을까요??
String introduction, | ||
String kakaoOpenChatUrl, | ||
List<DayOfWeek> dayOffs | ||
List <DayOfWeek> dayOffs |
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.
p1 :
여기에 List 뒤에 뛰어쓰기가 하나 들어간것 같은데 확인해봐야 할것 같아요
package com.moddy.server.controller.designer.dto; | ||
|
||
import lombok.*; | ||
|
||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Getter | ||
@Builder | ||
@ToString | ||
public class PortfolioDTO { | ||
|
||
private String instagramUrl; | ||
|
||
private String naverPlaceUrl; | ||
} |
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.
p2:
이부분도 record로 바꾸면 좋을 것같아요!
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.
고생하셨습니다~!!!
관련 이슈번호
해결하는 데 얼마나 걸렸나요? (예상 작업 시간 / 실제 작업 시간)
해결하려는 문제가 무엇인가요?
어떻게 해결했나요?