package com.crm.manager.service;

import com.crm.rely.backend.core.dto.base.ResultWithPagerDto;
import com.crm.rely.backend.core.dto.risk.leverage.group.rule.RiskLeverageGroupRuleDto;
import com.crm.rely.backend.core.dto.risk.revoke.credit.rule.group.RiskRevokeCreditRuleGroupDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.risk.leverage.group.rule.RiskLeverageGroupRuleSaveEntity;
import com.crm.rely.backend.core.entity.risk.revoke.credit.rule.exclude.login.RiskRevokeCreditRuleExcludeLoginSaveEntity;
import com.crm.rely.backend.core.entity.risk.revoke.credit.rule.group.RiskRevokeCreditRuleGroupAddEntity;
import com.crm.rely.backend.core.entity.risk.revoke.credit.rule.group.RiskRevokeCreditRuleGroupDeleteEntity;
import com.crm.rely.backend.core.entity.risk.revoke.credit.rule.group.RiskRevokeCreditRuleGroupSearchPageEntity;
import com.crm.rely.backend.core.entity.risk.revoke.credit.rule.group.RiskRevokeCreditRuleGroupUpdateEntity;
import com.crm.rely.backend.exception.ServiceException;

import java.util.List;

public interface RiskLeverageGroupRuleService {

    void save(Long leverageGroupId, List<RiskLeverageGroupRuleSaveEntity> entities) throws ServiceException;

    /**
     * 删除对应的排除交易账户
     *
     * @param leverageGroupIds
     * @throws ServiceException
     */
    void delete(List<Long> leverageGroupIds) throws ServiceException;

    /**
     * 获取对应的杠杠规则
     *
     * @param leverageGroupId
     * @return
     * @throws ServiceException
     */
    List<RiskLeverageGroupRuleDto> getRuleDto(Long leverageGroupId) throws ServiceException;
}
