Skip to content

Comments

[fix] #93 Edit user dashboard API & Add response data for admin request management pannel#99

Merged
saokiritoni merged 4 commits intodevelopfrom
feat/#93-dashboard-api-modification
Aug 24, 2025
Merged

[fix] #93 Edit user dashboard API & Add response data for admin request management pannel#99
saokiritoni merged 4 commits intodevelopfrom
feat/#93-dashboard-api-modification

Conversation

@kwdahun
Copy link
Contributor

@kwdahun kwdahun commented Aug 23, 2025

@kwdahun kwdahun requested a review from saokiritoni August 23, 2025 15:18
@kwdahun kwdahun self-assigned this Aug 23, 2025
@kwdahun kwdahun requested a review from a team as a code owner August 23, 2025 15:18
.build();
}
}
public static SaveRequestResponseDTO fromEntity(Request request) {
Copy link
Member

Choose a reason for hiding this comment

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

fromEntity에 원래 null 관련 처리가 되어있었는데

이런 처리들은 service에 모아서 예외처리를 해주는 게 더 좋을 것 같습니다!
지금 서비스에서 비즈니스 예외를 다 다루고 있기도 하고,
DTO에서 이런 처리를 해주는 게 '데이터를 담는다'는 의미를 해치는 것 같아서...
ErrorCode가 아니라 이렇게 조건 달아서 null을 줄줄이 처리하다보면 어디서 에러났는지도 잘 안 잡힐 거 같고요!

요건 원래 이렇게 되어있었어서 좀 고민해보면 좋을 것 같습니당!!

물론 지금도 잘 작동한다면 굿!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

굿 땡큐

@saokiritoni
Copy link
Member

위에 거만 나중에 고치면 더 좋을 것 같아요!
시간 되면 고쳐봅시당
일단 어프루브 하겠습니당 ~~
나머지는 굿 !
고생했어!!

@kwdahun
Copy link
Contributor Author

kwdahun commented Aug 23, 2025

validateAndConvertToDTO 함수로 빼서 service layer에 집어넣었어! 시간되면 검토해보고 답글 하나만 달아줘!

@saokiritoni saokiritoni merged commit 67fe3ea into develop Aug 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ feat ] 프론트엔드 요구사항 반영

2 participants