|
@@ -3,12 +3,12 @@ package com.hssx.ysofficial.controller;
|
|
|
|
|
|
import com.hssx.ysofficial.entity.Article;
|
|
import com.hssx.ysofficial.entity.Article;
|
|
import com.hssx.ysofficial.service.ArticleService;
|
|
import com.hssx.ysofficial.service.ArticleService;
|
|
|
|
+import com.hssx.ysofficial.service.OnlineApplicationService;
|
|
import com.hssx.ysofficial.utility.HttpRespMsg;
|
|
import com.hssx.ysofficial.utility.HttpRespMsg;
|
|
|
|
+import com.hssx.ysofficial.utility.PageUtil;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -24,6 +24,8 @@ import org.springframework.web.multipart.MultipartFile;
|
|
public class ArticleController {
|
|
public class ArticleController {
|
|
@Autowired
|
|
@Autowired
|
|
private ArticleService articleService;
|
|
private ArticleService articleService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private OnlineApplicationService onlineApplicationService;
|
|
|
|
|
|
@RequestMapping("/getArticle")
|
|
@RequestMapping("/getArticle")
|
|
public HttpRespMsg getArticle(){
|
|
public HttpRespMsg getArticle(){
|
|
@@ -59,5 +61,15 @@ public class ArticleController {
|
|
public HttpRespMsg switchArticlePosition(@RequestParam Integer id, @RequestParam Integer position){
|
|
public HttpRespMsg switchArticlePosition(@RequestParam Integer id, @RequestParam Integer position){
|
|
return articleService.switchPosition(id, position);
|
|
return articleService.switchPosition(id, position);
|
|
}
|
|
}
|
|
|
|
+ /**
|
|
|
|
+ * 参数:pageNum 当前页码,pageSize 每页条数
|
|
|
|
+ * @param page
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @PostMapping("/onlineApplyList")
|
|
|
|
+ @ResponseBody
|
|
|
|
+ public HttpRespMsg onlineApplyList(PageUtil page) {
|
|
|
|
+ return onlineApplicationService.getList(page);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|