package com.jeesharp.business.modules.finance.application.api;

import com.jeesharp.business.modules.finance.api.MerchantSettleConfigApi;
import com.jeesharp.business.modules.finance.merchantsettle.application.MerchantSettleConfigApplicationService;
import com.jeesharp.business.modules.finance.merchantsettle.vo.MerchantSettleConfigSnapshotVO;
import com.jeesharp.business.modules.finance.merchantsettle.vo.PaySettleResolveVO;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * {@link MerchantSettleConfigApi} 实现，委托 {@link MerchantSettleConfigApplicationService}。
 *
 * @author jeesharp
 * @since 2026-06-11
 */
@Service
@AllArgsConstructor
public class MerchantSettleConfigApiImpl implements MerchantSettleConfigApi {

    private final MerchantSettleConfigApplicationService merchantSettleConfigApplicationService;

    @Override
    public MerchantSettleConfigSnapshotVO resolveSnapshot(String merchantTenantId) {
        return merchantSettleConfigApplicationService.resolveSnapshot(merchantTenantId);
    }

    @Override
    public boolean anyNeedProfitSharing(List<String> merchantTenantIds) {
        return merchantSettleConfigApplicationService.anyNeedProfitSharing(merchantTenantIds);
    }

    @Override
    public PaySettleResolveVO resolvePaySettle(List<String> merchantTenantIds) {
        return merchantSettleConfigApplicationService.resolvePaySettle(merchantTenantIds);
    }
}
