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.scheduled.RiskSymbolLeverageScheduledDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.risk.symbol.leverage.scheduled.RiskSymbolLeverageScheduledAddEntity;
import com.crm.rely.backend.core.entity.risk.symbol.leverage.scheduled.RiskSymbolLeverageScheduledDeleteEntity;
import com.crm.rely.backend.core.entity.risk.symbol.leverage.scheduled.RiskSymbolLeverageScheduledSearchEntity;
import com.crm.rely.backend.core.entity.risk.symbol.leverage.scheduled.RiskSymbolLeverageScheduledUpdateEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

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

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

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

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

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

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

}
