package com.crm.manager.service;

import com.crm.rely.backend.core.dto.risk.leverage.login.rule.RiskLeverageLoginRuleDto;
import com.crm.rely.backend.core.entity.risk.leverage.login.rule.RiskLeverageLoginRuleSaveEntity;
import com.crm.rely.backend.exception.ServiceException;

import java.util.List;

public interface RiskLeverageLoginRuleService {

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

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

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