package com.crm.manager.service.merchant;

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.merchant.MerchantTransferDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.merchant.MerchantTransferApproveEntity;
import com.crm.rely.backend.core.entity.merchant.MerchantTransferDeleteEntity;
import com.crm.rely.backend.core.entity.merchant.MerchantTransferSearchEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "MERCHANT-SERVICE", path = "/transfer")
public interface MerchantTransferFeignService {


    @PostMapping("/delete")
    BaseResultDto delete(MerchantTransferDeleteEntity entity) throws Exception;

    @PostMapping("/approve")
    BaseResultDto approve(MerchantTransferApproveEntity entity) throws Exception;

    @PostMapping("/search/list")
    ResultWithPagerDto<MerchantTransferDto> searchPage(MerchantTransferSearchEntity entity) throws Exception;

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

    @PostMapping("/callback")
    BaseResultDto callback(SingleLongEntity entity) throws Exception;

}
