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.symbol.RiskSymbolGtcPendingSymbolDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.risk.symbol.gtc.pending.symbol.RiskSymbolGtcPendingSymbolAddEntity;
import com.crm.rely.backend.core.entity.risk.symbol.gtc.pending.symbol.RiskSymbolGtcPendingSymbolDeleteEntity;
import com.crm.rely.backend.core.entity.risk.symbol.gtc.pending.symbol.RiskSymbolGtcPendingSymbolSearchEntity;
import com.crm.rely.backend.core.entity.risk.symbol.gtc.pending.symbol.RiskSymbolGtcPendingSymbolUpdateEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

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

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

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

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

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

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

    @PostMapping("/list")
    BaseResultDto<List<RiskSymbolGtcPendingSymbolDto>> list() throws Exception;
}
