Skip to content

Comments

[Refactor/#231] 종원 서버 1차 리팩토링#237

Merged
BAEK0111 merged 6 commits intodevelopfrom
refactor/#231-jw-server-refactor
Feb 22, 2026
Merged

[Refactor/#231] 종원 서버 1차 리팩토링#237
BAEK0111 merged 6 commits intodevelopfrom
refactor/#231-jw-server-refactor

Conversation

@BAEK0111
Copy link
Contributor

#️⃣연관된 이슈

#231

📝작업 내용

컨트롤러 명세에 맞게 수정
사용하지 않는 파일 및 주석 삭제
data class -> record로 수정 및 컨버터 삭제
SimpleMessageBroker -> Redis Pub/Sub 설정

🔎코드 설명(스크린샷(선택))

코드에 대한 설명을 작성해주세요.

💬고민사항 및 리뷰 요구사항 (Optional)

고민사항 및 의견 받고 싶은 부분 있으면 적어두기

비고 (Optional)

참고했던 링크 등 참고 사항을 적어주세요. 코드 리뷰하는 사람이 참고해야 하는 내용을 자유로운 형식으로 적을 수 있습니다.

- 채팅 Controller 명세에 맞게 수정
- 채팅 Controller 명세에 맞게 수정
- 채팅 DTO -> record 변경 & 컨버터 삭제
- 채팅 사용하지 않는 import문 삭제
- 채팅 브로커 변경 (SimpleMessageBroker -> Redis Pub/Sub)
@BAEK0111 BAEK0111 self-assigned this Jan 18, 2026
@BAEK0111 BAEK0111 added the ♻️ refactor Refactor code label Jan 18, 2026
Copy link
Member

@2ghrms 2ghrms left a comment

Choose a reason for hiding this comment

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

고생하셨습니다!!

PR 제목을 [{대문자키워드}/#{이슈번호}] 형태로 변경하면 좋을 것 같습니다~~

this.partner = partner;
}

public static ChattingRoom toCreateChattingRoom(Admin admin, Partner partner) {
Copy link
Member

Choose a reason for hiding this comment

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

어짜피 static 메소드니까 이것도 from으로 하는게 좋을 것 같습니다!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

of: 여러 파라미터를 받아서 인스턴스를 생성할 때 사용 (정적 팩토리 메서드의 일반적인 네이밍)

예: ChattingRoom.of(admin, partner)

from: 단일 객체를 변환할 때 주로 사용

예: ChattingRoom.from(chattingRoomDTO) - DTO → Entity 변환

toEntity: DTO 클래스 내부에서 자기 자신을 엔티티로 변환할 때 사용

예: chattingRoomDTO.toEntity() - DTO의 인스턴스 메서드

두 개의 엔티티를 받아서 생성하는 것이어서 of로 수정해봤습니다!

@BAEK0111 BAEK0111 changed the title [Refactor] 종원 서버 1차 리팩토링 [Refactor/#231] 종원 서버 1차 리팩토링 Jan 19, 2026
- 메소드 네이밍 수정
- RequestDTO schema 설명 추가
- 가독성 좋게 수정
@BAEK0111 BAEK0111 merged commit c61cbff into develop Feb 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

♻️ refactor Refactor code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants