package com.yeejoin.amos.boot.module.jg.biz.event;

import com.yeejoin.amos.boot.module.jg.api.dto.ChangeDataDto;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;
import org.typroject.tyboot.core.foundation.context.RequestContextModel;

import java.util.List;

/**
 * @author Administrator
 */
@Getter
public class ChangeDataEvent extends ApplicationEvent {

    private final List<ChangeDataDto> data;

    private final RequestContextModel requestContext;

    /**
     * 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 ChangeDataEvent(Object source, List<ChangeDataDto> data, RequestContextModel requestContext) {
        super(source);
        this.data = data;
        this.requestContext = requestContext;
    }
}
