푸시정보
- 오디션 알림 추가
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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?
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user