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.scheduled.RiskSymbolGtcPendingScheduledDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.risk.symbol.gtc.pending.scheduled.RiskSymbolGtcPendingScheduledAddEntity;
import com.crm.rely.backend.core.entity.risk.symbol.gtc.pending.scheduled.RiskSymbolGtcPendingScheduledDeleteEntity;
import com.crm.rely.backend.core.entity.risk.symbol.gtc.pending.scheduled.RiskSymbolGtcPendingScheduledSearchEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

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

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

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

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

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

}
