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.qutoe.date.RiskSymbolQuoteDateDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.risk.symbol.quote.date.RiskSymbolQuoteDateAddEntity;
import com.crm.rely.backend.core.entity.risk.symbol.quote.date.RiskSymbolQuoteDateDeleteEntity;
import com.crm.rely.backend.core.entity.risk.symbol.quote.date.RiskSymbolQuoteDateSearchEntity;
import com.crm.rely.backend.core.entity.risk.symbol.quote.date.RiskSymbolQuoteDateUpdateEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

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

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

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

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

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

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

}
