@CrossOrigin @RestController @RequestMapping(value="/blog-admin") public class BlogAdminController extends Object
Constructor and Description |
---|
BlogAdminController() |
Modifier and Type | Method and Description |
---|---|
JsonUtil |
addArticle(ArticleDetail detail) |
JsonUtil |
addImage(org.springframework.web.multipart.MultipartHttpServletRequest request) |
ReType |
getArticleList(BlogArticle article,
Integer page,
Integer limit) |
JsonUtil |
getCategory() |
JsonUtil |
getDetail(String code)
根据code获取文章明细
|
JsonUtil |
updateArticle(ArticleDetail detail) |
@GetMapping(value="/article/getList") public ReType getArticleList(BlogArticle article, Integer page, Integer limit)
@GetMapping(value="/article/getDetail/{code}") public JsonUtil getDetail(@PathVariable(value="code") String code)
code
- @GetMapping(value="/article/getCategory") public JsonUtil getCategory()
@PostMapping(value="/article/addImage") public JsonUtil addImage(org.springframework.web.multipart.MultipartHttpServletRequest request)
@PostMapping(value="/article/add") @Transactional public JsonUtil addArticle(@RequestBody ArticleDetail detail)
@PostMapping(value="/article/update") @Transactional public JsonUtil updateArticle(@RequestBody ArticleDetail detail)
Copyright © 2019. All rights reserved.