PortalBannersApiController.java 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package com.goafanti.banners.controller;
  2. import javax.annotation.Resource;
  3. import javax.servlet.http.HttpServletRequest;
  4. import org.springframework.stereotype.Controller;
  5. import org.springframework.web.bind.annotation.RequestMapping;
  6. import org.springframework.web.bind.annotation.RequestMethod;
  7. import com.goafanti.banners.service.BannersService;
  8. import com.goafanti.common.bo.Result;
  9. import com.goafanti.common.controller.BaseApiController;
  10. @Controller
  11. @RequestMapping(value = "/api/portal/banners")
  12. public class PortalBannersApiController extends BaseApiController {
  13. @Resource
  14. BannersService bannersService;
  15. /**
  16. * 获取集合轮播图
  17. * @param apiUrl
  18. * @param client
  19. * @param pageSize
  20. * @param pageNo
  21. * @param request
  22. * @return
  23. */
  24. @RequestMapping(value="/list" ,method=RequestMethod.GET)
  25. public Result appList(String apiUrl,Integer client,Integer pageSize,Integer pageNo,HttpServletRequest request){
  26. Result result=new Result();
  27. result.setData(bannersService.findBannersList( apiUrl,client, pageSize, pageNo));
  28. return result;
  29. }
  30. }