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

@FeignClient(name = "UCARD-SERVICE", path = "/ucard/wallet/address/manager")
public interface UcardWalletAddressFeignService {


    /**
     * 钱包地址分页列表
     */
    @PostMapping("/page")
    ResultWithPagerDto<VaultodyDepositAddressDto> getDepositAddressPage(VaultodyDepositAddressPageEntity entity) throws ServiceException;

    /**
     * 重置钱包地址
     */
    @PostMapping("/reset")
    BaseResultDto resetDepositAddress(VaultodyResetDepositAddressEntity entity) throws ServiceException;


}
