package com.zhentao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhentao.entity.PointRule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 积分规则Mapper
 *
 * @author zhentao
 * @since 2025-12-10
 */
@Mapper
public interface PointRuleMapper extends BaseMapper<PointRule> {

    /**
     * 根据规则名称获取启用的积分规则
     *
     * @param ruleName 规则名称
     * @return 积分规则
     */
    PointRule selectByRuleName(@Param("ruleName") String ruleName);
}