package com.goafanti.banners.controller;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.goafanti.banners.service.BannersService;
import com.goafanti.common.bo.Result;
import com.goafanti.common.controller.BaseApiController;

@Controller
@RequestMapping(value = "/api/portal/banners")
public class PortalBannersApiController extends BaseApiController {
	@Resource
	BannersService	bannersService;
	
	
	/**
	 * 获取集合轮播图
	 * @param apiUrl
	 * @param client
	 * @param pageSize
	 * @param pageNo
	 * @param request
	 * @return
	 */
	@RequestMapping(value="/list" ,method=RequestMethod.GET)
	public Result appList(String apiUrl,Integer client,Integer pageSize,Integer pageNo){
		Result result=new Result();
		result.setData(bannersService.findBannersList( apiUrl,client, pageSize, pageNo));
		return result;
	}
	
	


}
