package com.liquidnet.service.platform.service.impl.candy;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.liquidnet.service.candy.dto.CandyCouponRuleDto;
import com.liquidnet.service.candy.entity.CandyCouponRule;
import com.liquidnet.service.candy.mapper.CandyCouponRuleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PlatformCandyCouponRuleService extends ServiceImpl<CandyCouponRuleMapper, CandyCouponRule> {
    @Autowired
    CandyCouponRuleMapper candyCouponRuleMapper;

    public List<CandyCouponRuleDto> listForCouponRuleDto(String couponId) {
        return candyCouponRuleMapper.selectForCouponRuleDto(couponId);
    }
}
