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.deposit.give.FinanceDepositGiveDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.finance.deposit.give.FinanceDepositGiveAddEntity;
import com.crm.rely.backend.core.entity.finance.deposit.give.FinanceDepositGiveSearchListEntity;
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;

import java.util.List;

@FeignClient(name = "PAY-SERVICE", path = "/finance/deposit/give/manager")
public interface FinanceDepositGiveFeignService {

    @PostMapping("/searcher/list")
    ResultWithPagerDto<FinanceDepositGiveDto> searcherList(@RequestBody @Validated FinanceDepositGiveSearchListEntity entity);

    @PostMapping("/export")
    BaseResultDto<List<FinanceDepositGiveDto>> export(@RequestBody @Validated FinanceDepositGiveSearchListEntity entity) throws Exception;

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

    @PostMapping("/add")
    BaseResultDto add(FinanceDepositGiveAddEntity entity) throws Exception;
}
