package com.bonus.material.approval.strategy;

import com.bonus.material.approval.domain.ApprovalInstance;

/**
 * 审批回调接口
 * 
 * @author bonus
 * @date 2024-11-18
 */
public interface IApprovalCallback {

    /**
     * 审批通过回调
     * 
     * @param instance 审批实例
     */
    void onApproved(ApprovalInstance instance);

    /**
     * 审批驳回回调
     * 
     * @param instance 审批实例
     */
    void onRejected(ApprovalInstance instance);
}

