package com.crm.manager.service;

import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.dto.base.ResultWithPagerDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.model.dto.finance.transfer.FinanceTransferSearchDto;
import com.crm.rely.backend.model.entity.finance.transfer.FinanceTransferDeleteEntity;
import com.crm.rely.backend.model.entity.finance.transfer.FinanceTransferSearchEntity;
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 = "GOLDEN-PAY-SERVICE", path = "/transfer/manager")
public interface FinanceTransferFeignService {

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

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

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


}
