package com.crm.manager.service.finance;

import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.entity.finance.withdraw.automatic.FinanceWithdrawInfoEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "PAY-SERVICE")
public interface FinanceWithdrawApiFeignService {

    @PostMapping(value = "/{contextPath}")
    BaseResultDto withdrawInfo(@PathVariable(name = "contextPath") String contextPath,
                               FinanceWithdrawInfoEntity entity);

    @PostMapping(value = "/{contextPath}")
    BaseResultDto withdraw(@PathVariable(name = "contextPath") String contextPath, Object entity);
}
