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.RiskGroupLeverageDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.risk.group.leverage.RiskGroupLeverageAddEntity;
import com.crm.rely.backend.core.entity.risk.group.leverage.RiskGroupLeverageDeleteEntity;
import com.crm.rely.backend.core.entity.risk.group.leverage.RiskGroupLeverageSearchEntity;
import com.crm.rely.backend.core.entity.risk.group.leverage.RiskGroupLeverageUpdateEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

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

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

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

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

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

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

}
