博客业务实现

This commit is contained in:
zxm 2018-10-12 22:49:28 +08:00 committed by meng
parent 723a898792
commit 6efc8723f5
1 changed files with 3 additions and 16 deletions

View File

@ -1,7 +1,6 @@
package com.len.controller;
import com.len.entity.BlogArticle;
import com.len.entity.BlogTag;
import com.len.service.BlogArticleService;
import com.len.service.BlogTagService;
import com.len.util.JsonUtil;
@ -14,12 +13,7 @@ import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import tk.mybatis.mapper.entity.Condition;
import javax.servlet.http.HttpServletRequest;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.UUID;
/**
* @author zhuxiaomeng
@ -47,13 +41,6 @@ public class BlogAdminController {
@GetMapping("/article/getList")
public ReType getArticleList(BlogArticle article, Integer page, Integer limit) {
BlogTag tag=new BlogTag();
tag.setId(UUID.randomUUID().toString().replace("-", ""));
tag.setTagCode("123");
tag.setTagName("123");
List<BlogTag> tags=new ArrayList<>();
tags.add(tag);
tagService.insertList(tags);
return articleService.getList(article, page, limit);
}