@CrossOrigin @RestController @RequestMapping(value="/blog") public class ArticleController extends Object
Constructor and Description |
---|
ArticleController() |
Modifier and Type | Method and Description |
---|---|
String |
articleListPage() |
JsonUtil |
detail(String code,
javax.servlet.http.HttpServletRequest request)
根据code获取文章内容
|
ReType |
getArticleByReadNumber() |
ReType |
getArticleByTag(String tagName,
Integer page,
Integer limit)
根据标签code获取文章
|
ReType |
getList(String code,
Integer page,
Integer limit)
获取 文章列表
|
@GetMapping(value="/articleList") public String articleListPage()
@GetMapping(value="/article/list") public ReType getList(String code, Integer page, Integer limit)
code
- page
- limit
- @GetMapping(value="/article/getDetail/{code}") public JsonUtil detail(@PathVariable(value="code") String code, javax.servlet.http.HttpServletRequest request)
code
- @GetMapping(value="/article/list/{tagName}") public ReType getArticleByTag(@PathVariable(value="tagName") String tagName, Integer page, Integer limit)
tagName
- page
- limit
- @GetMapping(value="/article/list/order/read") public ReType getArticleByReadNumber()
Copyright © 2019. All rights reserved.