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.follow.transfer.FinanceFollowTransferSearchDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.finance.follow.transfer.FinanceFollowTransferApproveEntity;
import com.crm.rely.backend.core.entity.finance.follow.transfer.FinanceFollowTransferDeleteEntity;
import com.crm.rely.backend.core.entity.finance.follow.transfer.FinanceFollowTransferSearchEntity;
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 = "/follow/transfer/manager")
public interface FinanceFollowTransferFeignService {


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

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

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

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