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.group.leverage.symbol.RiskGroupLeverageSymbolDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.risk.group.leverage.symbol.RiskGroupLeverageSymbolAddEntity;
import com.crm.rely.backend.core.entity.risk.group.leverage.symbol.RiskGroupLeverageSymbolDeleteEntity;
import com.crm.rely.backend.core.entity.risk.group.leverage.symbol.RiskGroupLeverageSymbolSearchEntity;
import com.crm.rely.backend.core.entity.risk.group.leverage.symbol.RiskGroupLeverageSymbolUpdateEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

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

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

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

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

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

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

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