package com.crm.manager.service.custom;

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.custom.wallet.CustomWalletHistoryDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.custom.wallet.history.CustomWalletHistorySearchEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * @author: houn
 */
@FeignClient(name = "CUSTOM-SERVICE", path = "/custom/wallet/history/manager")
public interface CustomWalletHistoryFeignService {

    @PostMapping("/search/list")
    ResultWithPagerDto<CustomWalletHistoryDto> managerSearcherList(CustomWalletHistorySearchEntity entity) throws Exception;

    @PostMapping("/search/single")
    BaseResultDto managerSearcherSingle(SingleLongEntity entity) throws Exception;

    @PostMapping("/export")
    BaseResultDto<List<CustomWalletHistoryDto>> export(CustomWalletHistorySearchEntity entity) throws Exception;
}
