package com.yutou.nas.Services.impl;

import com.yutou.nas.Services.IBangumiService;
import com.yutou.nas.mybatis.dao.BangumiItemDao;
import com.yutou.nas.mybatis.model.BangumiItem;
import com.yutou.nas.mybatis.model.BangumiItemExample;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("BangumiService")
public class BangumiServiceImpl implements IBangumiService {
    @Resource
    BangumiItemDao itemDao;
    @Override
    public List<BangumiItem> getAllBangumi() {
        return itemDao.selectByExample(new BangumiItemExample());
    }
}
