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

import com.jeesharp.business.modules.finance.api.ProfitSharingReturnApi;
import com.jeesharp.business.modules.finance.profitsharing.application.ProfitSharingReturnApplicationService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

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

    private final ProfitSharingReturnApplicationService profitSharingReturnApplicationService;

    @Override
    public boolean ensureReturnForRefund(String payRefundOrderId) {
        return profitSharingReturnApplicationService.ensureReturnForRefund(payRefundOrderId);
    }
}
