/*
 * Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 */

package com.yami.shop.user.comment.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yami.shop.user.comment.model.Coupon;
import com.yami.shop.user.comment.dao.UserLevelCategoryMapper;
import com.yami.shop.user.comment.dao.UserLevelCouponMapper;
import com.yami.shop.user.comment.model.UserLevelCategory;
import com.yami.shop.user.comment.model.UserLevelCoupon;
import com.yami.shop.user.comment.service.UserLevelCategoryService;
import com.yami.shop.user.comment.service.UserLevelCouponService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;

/**
 *
 *
 * @author LGH
 * @date 2020-02-26 16:03:14
 */
@Service
@AllArgsConstructor
public class UserLevelCouponServiceImpl extends ServiceImpl<UserLevelCouponMapper, UserLevelCoupon> implements UserLevelCouponService {

    private final UserLevelCouponMapper userLevelCouponMapper;



    @Override
    public void insertBatchCoupon(Long[] coupons ,Long id) {
        userLevelCouponMapper.insertBatchCoupon(coupons, id);
    }

    @Override
    public void delBatchCoupon(Long[] coupons, Long id) {
        userLevelCouponMapper.delBatchCoupon(coupons, id);
    }

    @Override
    public List<Coupon> getCouponListByLevelId(Long id) {
        return userLevelCouponMapper.getCouponListByLevelId(id);
    }

}
