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.subscribe.MerchantLoginSubscribeDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.merchant.subscribe.MerchantLoginSubscribeApproveEntity;
import com.crm.rely.backend.core.entity.merchant.subscribe.MerchantLoginSubscribeDeleteEntity;
import com.crm.rely.backend.core.entity.merchant.subscribe.MerchantLoginSubscribeSearchEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

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


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

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

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

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

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

}
