Skip to content
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

Merged
merged 5 commits into from
Jan 12, 2024

Conversation

pkl0912
Copy link
Contributor

@pkl0912 pkl0912 commented Jan 12, 2024

관련 이슈번호

해결하는 데 얼마나 걸렸나요? (예상 작업 시간 / 실제 작업 시간)

  • 1~2 h

해결하려는 문제가 무엇인가요?

  • dayOffWeek 요일이 multipart/form 에서 리스트임에도 여러개 선택 불가

어떻게 해결했나요?

  • multipart 와 json 모두 사용

@pkl0912 pkl0912 requested review from hellozo0 and KWY0218 January 12, 2024 07:55
@pkl0912 pkl0912 self-assigned this Jan 12, 2024
Copy link
Member

@KWY0218 KWY0218 left a comment

Choose a reason for hiding this comment

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

작업하시느라 고생하셨습니다!
코맨트 확인해주세요!

Comment on lines 17 to 18
HairShop hairShop,
Portfolio portfolio,
Copy link
Member

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,
Copy link
Member

Choose a reason for hiding this comment

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

p3
해당 부분을 request가 아닌 disignerInfo와 같은 변수명은 어떨까요?

Copy link
Member

@hellozo0 hellozo0 left a comment

Choose a reason for hiding this comment

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

수고하셨습니다!!! 저는 다른 방법으로 구현 했는데 이방법 한번 잘 보겠습니다

Comment on lines 1 to 17
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;
}
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

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

p1 :
여기에 List 뒤에 뛰어쓰기가 하나 들어간것 같은데 확인해봐야 할것 같아요

Comment on lines 1 to 15
package com.moddy.server.controller.designer.dto;

import lombok.*;

@AllArgsConstructor
@NoArgsConstructor
@Getter
@Builder
@ToString
public class PortfolioDTO {

private String instagramUrl;

private String naverPlaceUrl;
}
Copy link
Member

Choose a reason for hiding this comment

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

p2:
이부분도 record로 바꾸면 좋을 것같아요!

Copy link
Member

@KWY0218 KWY0218 left a comment

Choose a reason for hiding this comment

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

구웃 ~ ! 👍

Copy link
Member

@hellozo0 hellozo0 left a comment

Choose a reason for hiding this comment

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

고생하셨습니다~!!!

@pkl0912 pkl0912 merged commit 6b6cc87 into develop Jan 12, 2024
1 check passed
@pkl0912 pkl0912 deleted the refactor/#105 branch January 13, 2024 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[refactor] 디자이너 회원가입 시 DayOffs 리스트 수정
3 participants