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

Feature/report #11

Merged
merged 2 commits into from
Oct 30, 2024
Merged

Feature/report #11

merged 2 commits into from
Oct 30, 2024

Conversation

suna-ji
Copy link
Member

@suna-ji suna-ji commented Oct 29, 2024

보고서 생성 완료 후 전달해야 하는 정보를 선별하였고 아래와 같습니다.

  • object path
  • status

이를 기반으로, 해당 정보를 담은 ReportComplete 클래스를 record 타입으로 생성하였습니다.
보고서 생성이 완료되면 objectPath와 status는 변경되지 않으므로, 불변성을 보장하기 위해 record 타입을 선택하였습니다.

@suna-ji suna-ji added this to the V1.0.0 milestone Oct 29, 2024
@suna-ji suna-ji requested a review from since1909 October 29, 2024 07:33
package org.devpalsboot.report.domain;

import org.devpalsboot.report.ReportStatus;
public record ReportComplete (String objectPath, ReportStatus status)
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.

status 값에 따라 objectPath 파라미터가 null 이 될 수도 있을 거 같은데 이와 같은 케이스에 대해서도 정의해보면 좋을 거 같습니다.

@since1909 since1909 merged commit 03f5512 into main Oct 30, 2024
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