package com.fs.audit.event;

import com.fs.audit.domain.Audit;
import com.fs.audit.domain.AuditFlow;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * 审核创建事件
 */
@Getter
public class AuditCreatedEvent extends ApplicationEvent {

    /**
     * 审核实例
     */
    private final Audit audit;

    /**
     * 第一步流程记录
     */
    private final AuditFlow firstFlow;

    public AuditCreatedEvent(Object source, Audit audit, AuditFlow firstFlow) {
        super(source);
        this.audit = audit;
        this.firstFlow = firstFlow;
    }
}

