package com.jeequan.jeepay.core.interfaces.transfer;

import com.jeequan.jeepay.core.entity.TransferSubject;
import com.jeequan.jeepay.core.model.tranfer.TransferBasicInfo;

import java.util.List;
import java.util.Map;

/**
 * 转账功能抽象
 *
 * @author deng
 * @since 2024/4/25
 */
public interface IChannelTransferFlowService<T extends TransferBasicInfo> {

    /**
     * 发起转账
     * @param transferSubjects  主体列表
     * @param bizData   业务数据，暂定主体ID为key, 金额为value值
     */
    void transfer(List<TransferSubject> transferSubjects, Map<Long, Long> bizData);
}
