|
|
@@ -0,0 +1,47 @@
|
|
|
+package com.goafanti.portal.controller;
|
|
|
+
|
|
|
+import java.util.Arrays;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+import javax.annotation.Resource;
|
|
|
+
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.servlet.ModelAndView;
|
|
|
+
|
|
|
+import com.goafanti.common.bo.Result;
|
|
|
+import com.goafanti.common.controller.BaseApiController;
|
|
|
+import com.goafanti.lecture.bo.LectureListBo;
|
|
|
+import com.goafanti.lecture.service.LectureService;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 科技讲堂
|
|
|
+ */
|
|
|
+@RestController
|
|
|
+public class PortalLectureController extends BaseApiController {
|
|
|
+ @Resource
|
|
|
+ private LectureService lectureService;
|
|
|
+
|
|
|
+ //@RequestMapping(value = "/portal/scienceTechnology/lecture", method = RequestMethod.GET)
|
|
|
+ public ModelAndView lecture(){
|
|
|
+ ModelAndView mv = new ModelAndView();
|
|
|
+ List<LectureListBo> lectureList = lectureService.findLectureList();
|
|
|
+ mv.addObject("lectureList", lectureList);
|
|
|
+ mv.setViewName("/portal/scienceTechnology/lecture");
|
|
|
+ return mv;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查看更多
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/portal/scienceTechnology/lecture/loadMore", method = RequestMethod.POST)
|
|
|
+ public Result loadMore(String pageSize, String pageNo, String id){
|
|
|
+ Result res = new Result();
|
|
|
+ if (StringUtils.isNotBlank(id)){
|
|
|
+ List<String> ids = Arrays.asList(id.trim().split(",|,"));
|
|
|
+ }
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+}
|