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

import com.yeejoin.amos.boot.module.jg.api.dto.BizRelationDataDto;
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;

    private final BizRelationDataDto bizRelationData;

    public ChangeDataEvent(Object source, BizRelationDataDto bizRelationData, List<ChangeDataDto> data, RequestContextModel requestContext) {
        super(source);
        this.data = data;
        this.bizRelationData = bizRelationData;
        this.requestContext = requestContext;
    }
}
