package com.crm.manager.service.finance;

import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.dto.base.ResultWithPagerDto;
import com.crm.rely.backend.core.dto.finance.custom.FinanceCustomTransferSearchDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.finance.custom.FinanceCustomTransferApproveEntity;
import com.crm.rely.backend.core.entity.finance.custom.FinanceCustomTransferDeleteEntity;
import com.crm.rely.backend.core.entity.finance.custom.FinanceCustomTransferSearchEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "PAY-SERVICE", path = "/custom/transfer/manager")
public interface FinanceCustomTransferFeignService {


    @PostMapping("/approve")
    BaseResultDto approve(@RequestBody @Validated FinanceCustomTransferApproveEntity entity) throws Exception;

    @PostMapping("/delete")
    BaseResultDto delete(@RequestBody @Validated FinanceCustomTransferDeleteEntity entity) throws Exception;

    @PostMapping("/list")
    ResultWithPagerDto<FinanceCustomTransferSearchDto> searcherList(@RequestBody @Validated FinanceCustomTransferSearchEntity entity) throws Exception;

    @PostMapping("/single")
    BaseResultDto<FinanceCustomTransferSearchDto> searcherSingle(@RequestBody @Validated SingleLongEntity entity) throws Exception;

}
