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.unsubscribe.MerchantLoginUnsubscribeDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.merchant.unsubscribe.MerchantLoginUnsubscribeApproveEntity;
import com.crm.rely.backend.core.entity.merchant.unsubscribe.MerchantLoginUnsubscribeDeleteEntity;
import com.crm.rely.backend.core.entity.merchant.unsubscribe.MerchantLoginUnsubscribeSearchEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "MERCHANT-SERVICE", path = "/login/unsubscribe")
public interface MerchantLoginUnsubscribeFeignService {


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

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

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

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

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

}
