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.scheduled.RiskGroupLeverageScheduledDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.risk.group.leverage.scheduled.RiskGroupLeverageScheduledAddEntity;
import com.crm.rely.backend.core.entity.risk.group.leverage.scheduled.RiskGroupLeverageScheduledDeleteEntity;
import com.crm.rely.backend.core.entity.risk.group.leverage.scheduled.RiskGroupLeverageScheduledSearchEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

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

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

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

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

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

}
