|
|
@@ -0,0 +1,38 @@
|
|
|
+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/user/banners")
|
|
|
+public class UserBannersApiController extends BaseApiController {
|
|
|
+ @Resource
|
|
|
+ BannersService bannersService;
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取集合轮播图
|
|
|
+ * @param apiUrl
|
|
|
+ * @param client
|
|
|
+ * @param pageSize
|
|
|
+ * @param pageNo
|
|
|
+ * @param request
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping(value="/adminList" ,method=RequestMethod.GET)
|
|
|
+ public Result appList(String apiUrl,Integer client,Integer pageSize,Integer pageNo,HttpServletRequest request){
|
|
|
+ Result result=new Result();
|
|
|
+ result.setData(bannersService.findAdminBannersList( apiUrl,client, pageSize, pageNo));
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+}
|