package com.crm.manager.service.risk;

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.risk.close.trade.login.RiskCloseTradeLoginDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.risk.close.trade.login.RiskCloseTradeLoginAddEntity;
import com.crm.rely.backend.core.entity.risk.close.trade.login.RiskCloseTradeLoginDeleteEntity;
import com.crm.rely.backend.core.entity.risk.close.trade.login.RiskCloseTradeLoginSearchPageEntity;
import com.crm.rely.backend.core.entity.risk.close.trade.login.RiskCloseTradeLoginUpdateEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "RISKBBI-SERVICE", path = "/risk/close/trade/login/manager")
public interface RiskCloseTradeLoginFeignService {

    @PostMapping("/add")
    BaseResultDto add(RiskCloseTradeLoginAddEntity entity) throws Exception;

    @PostMapping("/update")
    BaseResultDto update(RiskCloseTradeLoginUpdateEntity entity) throws Exception;

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

    @PostMapping("/search/list")
    ResultWithPagerDto<RiskCloseTradeLoginDto> pageList(RiskCloseTradeLoginSearchPageEntity entity) throws Exception;

    @PostMapping("/search/single")
    BaseResultDto<RiskCloseTradeLoginDto> single(SingleLongEntity entity) throws Exception;

}
