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

카테고리 생성 시 생성된 카테고리 값 반환 #485

Merged
merged 3 commits into from
Aug 19, 2024

Conversation

kyum-q
Copy link
Contributor

@kyum-q kyum-q commented Aug 19, 2024

변경 사항

  • 카테고리 생성 시 생성된 카테고리 값 반환

@kyum-q kyum-q added refactor 요구사항이 바뀌지 않은 변경사항 zap 리뷰 우선순위가 높은 사항 BE 백엔드 labels Aug 19, 2024
@kyum-q kyum-q added this to the 4차 스프린트 🐔 milestone Aug 19, 2024
@kyum-q kyum-q self-assigned this Aug 19, 2024
@kyum-q kyum-q changed the base branch from main to dev/be August 19, 2024 07:19
zangsu
zangsu previously approved these changes Aug 19, 2024
Copy link
Contributor

@zangsu zangsu 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 36 to 38
ResponseEntity<CreateCategoryResponse> createCategory(MemberDto memberDto,
CreateCategoryRequest createCategoryRequest
);
Copy link
Contributor

Choose a reason for hiding this comment

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

급한 내용이라면 무시해도 좋을 듯 합니다!
반환값이 void -> CreateCategoryResopnse 로 바뀐 부분도 문서화가 되어 있으면 좋을 것 같네요!
ApiResponse 부분에 아래 코드가 추가되면 어떨까요?

content = {@Content(schema = @Schema(implementation = CreateCategoryResponse.class))}

Copy link
Contributor

Choose a reason for hiding this comment

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

그런데 다시 다른 문서화들을 보니 해당 코드가 거의 다 없는 것 같기도 하고~~
그냥 나중에 한번에 추가하는 PR 이 생기는 게 더 편할 것 같기도 합니다 크크

Copy link
Contributor Author

@kyum-q kyum-q Aug 19, 2024

Choose a reason for hiding this comment

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

일부로 모든 성공 API에서 @Schema 제거 했습니다 ~
제거해도 반환하는 Schema로 자동 Swagger 설정이 됩니다 ~

Copy link
Contributor

@HoeSeong123 HoeSeong123 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 36 to 38
ResponseEntity<CreateCategoryResponse> createCategory(MemberDto memberDto,
CreateCategoryRequest createCategoryRequest
);
Copy link
Contributor

Choose a reason for hiding this comment

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

이제까지 켬미의 리팩토링 스타일을 보면 아래와 같이 수정되어야 할 것 같은데 맞을까요?

Suggested change
ResponseEntity<CreateCategoryResponse> createCategory(MemberDto memberDto,
CreateCategoryRequest createCategoryRequest
);
ResponseEntity<CreateCategoryResponse> createCategory(
MemberDto memberDto,
CreateCategoryRequest createCategoryRequest
);

@kyum-q kyum-q closed this Aug 19, 2024
@kyum-q kyum-q reopened this Aug 19, 2024
Copy link
Contributor

@zeus6768 zeus6768 left a comment

Choose a reason for hiding this comment

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

👍

@kyum-q kyum-q closed this Aug 19, 2024
@Hain-tain Hain-tain reopened this Aug 19, 2024
Copy link
Contributor

@jminkkk jminkkk left a comment

Choose a reason for hiding this comment

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

켬미 수고했어요 🍀

@jminkkk jminkkk merged commit 98cf9a0 into woowacourse-teams:dev/be Aug 19, 2024
3 of 9 checks passed
@kyum-q kyum-q deleted the refacotor/category-response branch August 21, 2024 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BE 백엔드 refactor 요구사항이 바뀌지 않은 변경사항 zap 리뷰 우선순위가 높은 사항
Projects
Status: Weekend Done
Development

Successfully merging this pull request may close these issues.

6 participants