package com.fs.audit.event;

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

/**
 * 审核完成事件
 */
@Getter
public class AuditCompletedEvent extends ApplicationEvent {

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

    /**
     * 是否通过
     */
    private final boolean approved;

    public AuditCompletedEvent(Object source, Audit audit, boolean approved) {
        super(source);
        this.audit = audit;
        this.approved = approved;
    }
}

