package com.dora.mapper;

import com.dora.entity.PromotionLevelConfig;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 推广等级配置Mapper接口
 */
@Mapper
public interface PromotionLevelConfigMapper {
    
    /**
     * 获取所有推广等级配置（按等级排序）
     */
    List<PromotionLevelConfig> selectAllOrderByLevel();
    
    /**
     * 根据等级获取配置
     */
    PromotionLevelConfig selectByLevel(@Param("level") Integer level);
    
    /**
     * 根据付费粉丝数获取对应的等级配置
     */
    PromotionLevelConfig selectByPaidFansCount(@Param("paidFansCount") Integer paidFansCount);
    
    /**
     * 获取下一等级配置
     */
    PromotionLevelConfig selectNextLevel(@Param("currentLevel") Integer currentLevel);
} 