package com.thinkgem.jeesite.modules.homepage.service;

import com.thinkgem.jeesite.modules.homepage.bean.AdvRequest;
import com.thinkgem.jeesite.modules.homepage.dao.AdvDao;
import com.thinkgem.jeesite.modules.homepage.entity.AdvEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 轮播图
 */
@Service
@Transactional(readOnly = true)
public class AdvService {

    @Autowired
    private AdvDao advDao;

    public List<AdvEntity> getAdvList(AdvRequest request) {
        return advDao.getAdvList(request);
    }
}
