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.leverage.RiskSymbolLeverageDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.risk.symbol.leverage.RiskSymbolLeverageAddEntity;
import com.crm.rely.backend.core.entity.risk.symbol.leverage.RiskSymbolLeverageDeleteEntity;
import com.crm.rely.backend.core.entity.risk.symbol.leverage.RiskSymbolLeverageSearchEntity;
import com.crm.rely.backend.core.entity.risk.symbol.leverage.RiskSymbolLeverageUpdateEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "RISKBBI-SERVICE", path = "/risk/symbol/leverage/manager")
public interface RiskSymbolLeverageFeignService {

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

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

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

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

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

}
