Skip to content

refactor: id class ObjectId로 변경#160

Merged
ddingmin merged 2 commits intomainfrom
feature/change-memberId
Mar 23, 2025
Merged

refactor: id class ObjectId로 변경#160
ddingmin merged 2 commits intomainfrom
feature/change-memberId

Conversation

@ddingmin
Copy link
Copy Markdown
Member

💡 기능

  • ObjectId로 두고 사용하면 생성 timestamp 등 꺼내서 사용하기 편할 거 같아 지정했습니다.
    • 다만 presentation(swagger)에서는 ObjectId로 두면 문서에서 객체로 보여서 DTO에서는 String 타입을 사용하도록 했습니다.
  • ObjectId를 not null로 두고 애플리케이션 레벨에서 id를 할당하도록 했습니다..!
    • ObjectId 생성 로직이 인스턴스 id랑 타임스탬프 + random 조합이라 중복이슈는 없을 것 같아요.
    • 다만 isNew 로직을 정상적으로 못탈텐데 관련된 작업이 아직은 없어 인지만 하면 좋을 것 같아요.

🔎 기타

@ddingmin ddingmin requested a review from CChuYong as a code owner March 21, 2025 08:44
@ddingmin ddingmin changed the title reafctor: id class ObjectId로 변경 refactor: id class ObjectId로 변경 Mar 21, 2025
Copy link
Copy Markdown
Member

@CChuYong CChuYong left a comment

Choose a reason for hiding this comment

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

LGTM 👍
신기하군용

@ddingmin ddingmin merged commit d2f4675 into main Mar 23, 2025
2 checks passed
@ddingmin ddingmin deleted the feature/change-memberId branch March 23, 2025 13:14
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.

2 participants