package com.bonus.canteen.core.marketing.v2.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bonus.canteen.core.marketing.v2.model.MarketRule;
import com.bonus.canteen.core.marketing.v2.rule.param.RuleRangeParam;
import com.bonus.canteen.core.marketing.vo.MarketRuleVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MarketRuleMapper extends BaseMapper<MarketRule> {
    List<MarketRuleVO> listSuitableMealRule(@Param("param") RuleRangeParam param);

    List<MarketRuleVO> listSuitablePriceRule(@Param("param") RuleRangeParam param);

    List<MarketRuleVO> listSuitablePayRule(@Param("param") RuleRangeParam param);

    List<MarketRuleVO> listSuitableRechargeRule(@Param("param") RuleRangeParam param);

}
