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.symbol.trader.data.RiskSymbolTraderDateDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.risk.symbol.trader.date.RiskSymbolTraderDateAddEntity;
import com.crm.rely.backend.core.entity.risk.symbol.trader.date.RiskSymbolTraderDateDeleteEntity;
import com.crm.rely.backend.core.entity.risk.symbol.trader.date.RiskSymbolTraderDateSearchEntity;
import com.crm.rely.backend.core.entity.risk.symbol.trader.date.RiskSymbolTraderDateUpdateEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "RISKBBI-SERVICE", path = "/risk/symbol/trader/date/manager")
public interface RiskSymbolTraderDateFeignService {

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

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

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

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

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

}
