package com.yimeng.okr.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

@Getter
public class NotificationEvent extends ApplicationEvent {

    private final Long userId;
    private final String type;
    private final String title;
    private final String content;
    private final String refType;
    private final Long refId;

    public NotificationEvent(Object source, Long userId, String type,
                             String title, String content, String refType, Long refId) {
        super(source);
        this.userId = userId;
        this.type = type;
        this.title = title;
        this.content = content;
        this.refType = refType;
        this.refId = refId;
    }
}
