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

[Feature]: [BE] 카테고리 생성 #22

Merged
merged 11 commits into from
Jan 27, 2025
Merged

[Feature]: [BE] 카테고리 생성 #22

merged 11 commits into from
Jan 27, 2025

Conversation

GAEUN220
Copy link
Collaborator

#20

📌 과제 설명

  • 카테고리 생성 기능
  • dto, exeption 추가

👩‍💻 요구 사항과 구현 내용

  • 카테고리 생성 기능
  • 카테고리 생성 시에 공백 불가, 10자 이상 불가, 중복 불가 오류 처리

✅ 피드백 반영사항

✅ PR 포인트 & 궁금한 점

@GAEUN220 GAEUN220 self-assigned this Jan 26, 2025
@GAEUN220 GAEUN220 linked an issue Jan 26, 2025 that may be closed by this pull request
1 task
Copy link
Collaborator

@vdvhk12 vdvhk12 left a comment

Choose a reason for hiding this comment

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

고생하셨습니다.!

import lombok.RequiredArgsConstructor;

@RestController
@RequiredArgsConstructor
@RequestMapping("api/v1/categories")
Copy link
Collaborator

Choose a reason for hiding this comment

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

api 앞에 / 가 빠진 거 같아요!!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

수정했습니다!

Comment on lines 29 to 34
public record CreateCategoryReqBody(
@NotBlank
@Length(max = 10)
String name
) {
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

이 부분은 별도 dto로 빼는게 더 좋을 것 같은데, 다른 분들 의견도 한번 들어보고 결정해봅시다 👍

public record CategoryDto(
Long id,

@NotBlank
Copy link
Collaborator

Choose a reason for hiding this comment

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

응답 데이터에는 @notblank 안 붙이셔도 될 것 같아요
이거만 지우고 다시 push 하고 바로 머지 합시다 👍

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

수정하고 push 했습니다!

@GAEUN220 GAEUN220 merged commit daaf47b into main Jan 27, 2025
1 check passed
@GAEUN220 GAEUN220 deleted the feature/BE/category-20 branch January 27, 2025 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] 카테고리 생성 기능
3 participants