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

feat: CafeRegisterRequest DTO의 roadAddress 및 phoneNumber 필드 nullable로 수정 #144

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

Ji-soo708
Copy link
Member

개요

  • 프론트의 요청으로 카페 등록 요청 시, 카페 주소와 카페 번호의 경우 null도 가능하도록 수정하였습니다.

작업사항

  • CafeRegisterRequest DTO의 roadAddress 및 phoneNumber 필드 nullable로 수정

주의사항

  • 추가적으로 수정해야 할 부분이 있는지 확인해주세요.

@Ji-soo708 Ji-soo708 added the api 변경 api 스펙이 변경됐거나 기능이 변경된 작업 label Dec 12, 2023
@Ji-soo708 Ji-soo708 self-assigned this Dec 12, 2023
Copy link
Member

@kth990303 kth990303 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 -18 to -21
@NotBlank(message = "1012:공백일 수 없습니다.")
private String roadAddress;

@NotBlank(message = "1012:공백일 수 없습니다.")
Copy link
Member

Choose a reason for hiding this comment

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

이거 Entity에 nullable=false 라든지, update 로직에 null 미허용 로직이라든지 관련된 코드가 그동안 없었나보네요ㅋㅋ
지금은 nullable 허용돼서 다행이지만, 나중에 컬럼 추가할 때 이런거 좀 더 꼼꼼히 봐줘야겠다는 생각도 들고... 😭 흑흑

@Ji-soo708 Ji-soo708 merged commit c4b58e0 into develop Dec 12, 2023
2 checks passed
@Ji-soo708 Ji-soo708 deleted the MOCACONG-474-cafe-post-API-nullable-field branch December 12, 2023 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api 변경 api 스펙이 변경됐거나 기능이 변경된 작업
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants