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.symbol.RiskSymbolLeverageSymbolDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.risk.symbol.leverage.symbol.RiskSymbolLeverageSymbolAddEntity;
import com.crm.rely.backend.core.entity.risk.symbol.leverage.symbol.RiskSymbolLeverageSymbolDeleteEntity;
import com.crm.rely.backend.core.entity.risk.symbol.leverage.symbol.RiskSymbolLeverageSymbolSearchEntity;
import com.crm.rely.backend.core.entity.risk.symbol.leverage.symbol.RiskSymbolLeverageSymbolUpdateEntity;
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/leverage/symbol/manager")
public interface RiskSymbolLeverageSymbolFeignService {

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

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

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

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

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

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