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.group.RiskCloseTradeGroupDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.risk.close.trade.group.RiskCloseTradeGroupAddEntity;
import com.crm.rely.backend.core.entity.risk.close.trade.group.RiskCloseTradeGroupDeleteEntity;
import com.crm.rely.backend.core.entity.risk.close.trade.group.RiskCloseTradeGroupSearchPageEntity;
import com.crm.rely.backend.core.entity.risk.close.trade.group.RiskCloseTradeGroupUpdateEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

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

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

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

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

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

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

}
