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.gtc.pending.RiskSymbolGtcPendingDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.risk.symbol.gtc.pending.RiskSymbolGtcPendingAddEntity;
import com.crm.rely.backend.core.entity.risk.symbol.gtc.pending.RiskSymbolGtcPendingDeleteEntity;
import com.crm.rely.backend.core.entity.risk.symbol.gtc.pending.RiskSymbolGtcPendingSearchEntity;
import com.crm.rely.backend.core.entity.risk.symbol.gtc.pending.RiskSymbolGtcPendingUpdateEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "RISKBBI-SERVICE", path = "/risk/symbol/gtc/pending/manager")
public interface RiskSymbolGtcPendingFeignService {

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

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

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

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

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

}
