푸시정보

- 오디션 알림 추가
This commit is contained in:
2025-01-08 17:45:50 +09:00
parent b04f35c2da
commit b4cd489ee9
4 changed files with 14 additions and 3 deletions

View File

@@ -11,16 +11,23 @@ class MemberNotificationService(private val repository: MemberNotificationReposi
live: Boolean? = null,
uploadContent: Boolean? = null,
message: Boolean? = null,
audition: Boolean? = null,
member: Member
) {
var notification = repository.getMemberNotification(memberId = member.id!!)
if (notification == null) {
notification = MemberNotification(uploadContent, live, message)
notification = MemberNotification(
uploadContent = uploadContent,
live = live,
message = message,
audition = audition
)
notification.member = member
repository.save(notification)
} else {
if (live != null) notification.live = live
if (message != null) notification.message = message
if (audition != null) notification.audition = audition
if (uploadContent != null) notification.uploadContent = uploadContent
}
}

View File

@@ -3,5 +3,6 @@ package kr.co.vividnext.sodalive.member.notification
data class UpdateNotificationSettingRequest(
val live: Boolean?,
val message: Boolean?,
val audition: Boolean?,
val uploadContent: Boolean?
)