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.bbi.RiskBbiDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.risk.bbi.RiskBbiAddEntity;
import com.crm.rely.backend.core.entity.risk.bbi.RiskBbiDeleteEntity;
import com.crm.rely.backend.core.entity.risk.bbi.RiskBbiSearchPageEntity;
import com.crm.rely.backend.core.entity.risk.bbi.RiskBbiUpdateEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "RISKBBI-SERVICE", path = "/risk/bbi/manager")
public interface RiskBbiFeignService {

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

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

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

    @PostMapping("/search/list")
    ResultWithPagerDto<RiskBbiDto> searchPage(RiskBbiSearchPageEntity entity) throws Exception;

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

}
