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.UcardWalletWithdrawDto;
import com.crm.rely.backend.core.entity.ucard.CardWalletWithdrawApproveEntity;
import com.crm.rely.backend.core.entity.ucard.UcardWalletWithdrawPageEntity;
import com.crm.rely.backend.core.entity.ucard.WalletWithdrawApplyEntity;
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/withdraw/manager")
public interface UcardWalletWithdrawFeignService {


    /**
     * 钱包提款分页列表
     */
    @PostMapping("/page")
    ResultWithPagerDto<UcardWalletWithdrawDto> getWalletWithdrawPage(UcardWalletWithdrawPageEntity entity) throws ServiceException;

    /**
     * 钱包提款申请
     */
    @PostMapping("/apply")
    BaseResultDto walletWithdrawApply(WalletWithdrawApplyEntity entity) throws ServiceException;

    /**
     * 钱包提款审核
     */
    @PostMapping("/approve")
    BaseResultDto walletWithdrawApprove(CardWalletWithdrawApproveEntity entity) throws ServiceException;
}
