package com.yeejoin.amos.patrol.business.event;

import com.yeejoin.amos.patrol.business.dto.CheckRecordDataDto;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

@Getter
public class CheckRecordInsertEvent extends ApplicationEvent {

    private CheckRecordDataDto message;
    /**
     * Create a new {@code ApplicationEvent}.
     *
     * @param source the object on which the event initially occurred or with
     *               which the event is associated (never {@code null})
     */
    public CheckRecordInsertEvent(Object source,CheckRecordDataDto message) {
        super(source);
        this.message = message;
    }
}
