Skip to content

#11 - 애그리거트 설계에 맞춰 도메인 추가 #12

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

Merged
merged 16 commits into from
Jul 6, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions domain/src/main/kotlin/com/wespot/report/Report.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.wespot.report

import com.wespot.user.User

data class Report(
val type: ReportType,
val reporter: User,
Copy link
Contributor

Choose a reason for hiding this comment

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

targetId 도 추가해주세요! message나 vote의 id 값도 있어야 신고 받았을 떄 추적하기 더 쉬울 것 같아요!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

아 그 타겟 id 였군요~! 추가하도록 하겠습니당

val reported: User,
val isApprove: Boolean
) {

}
5 changes: 5 additions & 0 deletions domain/src/main/kotlin/com/wespot/report/ReportType.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.wespot.report

enum class ReportType {
MESSAGE, VOTE
}