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

기록하기 API #22

Merged
merged 11 commits into from
Aug 27, 2024
Merged

기록하기 API #22

merged 11 commits into from
Aug 27, 2024

Conversation

youngreal
Copy link
Member

What is this PR? 🔍

방문기록 저장 API 구현

* 자바 버전업 되면서 aws s3 모듈중 일부 모듈이 제거되어 생기는 wa경고 ,  해당 추가한 모듈을 사용권장하여 추가
@youngreal youngreal added the enhancement New feature or request label Aug 26, 2024
@youngreal youngreal self-assigned this Aug 26, 2024
@youngreal youngreal linked an issue Aug 26, 2024 that may be closed by this pull request
@@ -15,7 +15,6 @@ public class Member {
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

@Column(nullable = false)
Copy link
Member

Choose a reason for hiding this comment

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

이름이 null이어도 되나용 ?!

Copy link
Member Author

@youngreal youngreal Aug 26, 2024

Choose a reason for hiding this comment

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

이름은 null이어도 되고 심지어 지금은 아예 필요가 없습니다 서버에서 랜덤으로 만들어주는 닉네임을 쓸거라서요

Copy link
Member

Choose a reason for hiding this comment

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

아하 맞다 랜덤 닉네임

Copy link
Member

Choose a reason for hiding this comment

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

이 클래스는 코드들이 뭔가 신기하게 생겼어요

Copy link
Member Author

Choose a reason for hiding this comment

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

클라한테 지역을 입력받는데 얘네말고 다른값들이 들어오는걸 방지하기위함입니다 Enum한번 보심 될것같아유

Comment on lines 9 to 11
/**
*
*/
Copy link
Member

Choose a reason for hiding this comment

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

옹 이친구들은 지워도 좋을 거 같애용 혹시 뭐 적으려다가 깜빡하셨나영


@NotBlank(message = "명소 이름은 필수 입력 사항입니다.")
@Pattern(regexp = "^[가-힣]+$", message = "명소 이름은 한글만 입력 가능합니다.")
@Size(max = 50, message = "명소 이름은 50자 이내여야 합니다.")
Copy link
Member

Choose a reason for hiding this comment

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

프로토타입에는 명소명 20자로 되어 있어요!

Copy link
Member

Choose a reason for hiding this comment

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

이미지 세장까지 업로드 가능하게 해야하는데, 그 제한이 어디에 있나요 !?
혹시나 있다면 제가 못찾는 거 같아요 알려주세요 !!!!

Copy link
Member Author

Choose a reason for hiding this comment

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

오 추가하지 않았었는데 검증이 필요해보이네요

Comment on lines -43 to +47
public static MemberRegion of(Member member, Region region, int visitCount) {
public static MemberRegion of(Member member, Region region) {
return MemberRegion.builder()
.member(member)
.region(region)
.visitCount(visitCount)
.visitCount(1)
Copy link
Member

Choose a reason for hiding this comment

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

visitCount을 지우신 이유가 있나용

Copy link
Member Author

Choose a reason for hiding this comment

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

MemberRegion 객체는 특정 지역에 방문했을때 최초로 생성이되고, 이후에는 visitCount가 add되는 형태라서 이 객체를 생성했을땐 1번 방문했다는거고, 임의의 visitCount를 받아 생성할 일은 없다고 판단했어요

Comment on lines +29 to +30
@NotNull(message = "날짜는 필수 입력 사항입니다.")
LocalDate localDate
Copy link
Member

Choose a reason for hiding this comment

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

이거 포맷 프로토타입에서 기록할 때 날짜 형식은 2024년7월21일로 되어 있고, 기록 확인할 때는 24.07.21 되어 있네용 ?!
이거에 관련해서 클라이언트 분들이랑 얘기했던 거 같은데 결론이 기억 안나네요 ,,?ㅎ

Copy link
Member Author

Choose a reason for hiding this comment

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

클라에서 포맷팅 해줄겁니다

Copy link
Member

@min-0 min-0 left a comment

Choose a reason for hiding this comment

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

너ㅓㅓㅓㅓ무 고생하셨네요 !!!!!

@youngreal youngreal merged commit c1bdef0 into main Aug 27, 2024
1 check passed
@youngreal youngreal deleted the feat/#19 branch August 28, 2024 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

기록하기 API 개발
2 participants