package com.crm.manager.service.ucard;

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.ucard.UcardWalletDepositTransactionDto;
import com.crm.rely.backend.core.entity.ucard.UcardWalletDepositTransactionPageEntity;
import com.crm.rely.backend.exception.ServiceException;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@FeignClient(name = "UCARD-SERVICE", path = "/ucard/encrypted/manager")
public interface UcardEncryptedFeignService {

    /**
     * 加密货币交易记录导出
     */
    @PostMapping("/wallet/transaction/list/export")
    BaseResultDto<List<UcardWalletDepositTransactionDto>> encryptedWalletTransactionListExport(UcardWalletDepositTransactionPageEntity entity) throws ServiceException;

    /**
     * 加密货币交易分页列表
     */
    @PostMapping("/wallet/transaction/page")
    ResultWithPagerDto<UcardWalletDepositTransactionDto> getWalletDepositTransactionPage(UcardWalletDepositTransactionPageEntity entity) throws ServiceException;

}
