package com.kym.service;

import com.kym.entity.RechargePromotion;
import com.kym.service.mybatisplus.MyBaseService;

/**
 * 专属充值优惠活动服务
 *
 * @author skyline
 * @since 2026-06-03
 */
public interface RechargePromotionService extends MyBaseService<RechargePromotion> {

    /**
     * 根据令牌（场景值）查询有效的优惠活动，校验有效期和状态
     */
    RechargePromotion getByToken(String token);

    /**
     * 校验用户是否有资格参与活动
     */
    boolean checkUserEligible(RechargePromotion promotion, Long userId);
}
