/*
 * Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */

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

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yami.shop.mp.comment.dao.WeixinKeywordresponseMapper;
import com.yami.shop.mp.comment.model.WeixinKeywordresponse;
import com.yami.shop.mp.comment.service.WeixinKeywordresponseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 * @author lgh on 2019/01/18.
 */
@Service
public class WeixinKeywordresponseServiceImpl extends ServiceImpl<WeixinKeywordresponseMapper,WeixinKeywordresponse> implements WeixinKeywordresponseService {

    @Autowired
    private WeixinKeywordresponseMapper weixinKeywordresponseMapper;

    @Override
    @Cacheable(cacheNames="WeixinKeywordresponseList",key="1")
    public List<WeixinKeywordresponse> listWeixinKeywordresponse() {
        return weixinKeywordresponseMapper.selectList(Wrappers.emptyWrapper());
    }

    @Override
    @CacheEvict(cacheNames="WeixinKeywordresponseList",key="1")
    public void removeWeixinKeywordresponseCache() {

    }
}
