package com.hzs.activity.recommend.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.hzs.activity.recommend.vo.AcRecommendUpgradeVO;
import com.hzs.common.domain.activity.recommend.AcRecomUpgradeRuleConfig;

import java.util.List;

/**
 * <p>
 * 直推-推荐升级 服务类
 * </p>
 *
 * @author hzs
 * @since 2023-04-22
 */
public interface IAcRecomUpgradeRuleConfigService extends IService<AcRecomUpgradeRuleConfig> {
    /**
     * 根据活动ID查询直推升级
     *
     * @param activityId 活动ID
     * @return List<AcRecomUpgradeRuleConfig>
     */
    List<AcRecomUpgradeRuleConfig> selectByActivityId(Long activityId);

    /**
     * 查询配置规则
     *
     * @param recommendUpgradeVO 推荐升级参数
     * @return List<AcRecomUpgradeRuleConfig>
     */
    List<AcRecomUpgradeRuleConfig> selectRuleConfig(AcRecommendUpgradeVO recommendUpgradeVO);

    /**
     * 根据活动配置主键删除推荐升级配置
     *
     * @param pkBaseId   活动ID
     * @param pkModifyId 修改人ID
     * @return Boolean
     */
    Boolean deleteUpgradeRuleConfigByBaseId(Long pkBaseId, Long pkModifyId);

}
