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

import lombok.Getter;
import org.springframework.context.ApplicationEvent;
import org.typroject.tyboot.core.foundation.context.RequestContextModel;

@Getter
public class BaseBizDataChangeEvent extends ApplicationEvent {

    private String applyNo;

    private RequestContextModel requestContext;

    public BaseBizDataChangeEvent(Object source) {
        super(source);
    }

    /**
     * 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 BaseBizDataChangeEvent(Object source, String applyNo, RequestContextModel requestContext) {
        super(source);
        this.applyNo = applyNo;
        this.requestContext = requestContext;
    }
}
