Skip to content

Commit

Permalink
取消分类查找和标签查找的分页搜索
Browse files Browse the repository at this point in the history
  • Loading branch information
TreasureJade committed Jan 16, 2020
1 parent a918b10 commit a6b10f8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
6 changes: 0 additions & 6 deletions src/main/java/com/swpu/uchain/blog/form/SelectByTagForm.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@
@Data
public class SelectByTagForm {

@ApiModelProperty("页数")
private int pageNum;

@ApiModelProperty("一页展示的个数")
private int pageSize;

@ApiModelProperty("标签id")
private Integer tagId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,17 +181,13 @@ public ResultVO selectArticleDetail(Long blogId) {

@Override
public ResultVO selectArticleByTags(SelectByTagForm form) {
PageHelper.startPage(form.getPageNum(), form.getPageSize());
List<ArticleListVO> list = articleMapper.selectArticlesByTagId(form.getTagId());
PageInfo<ArticleListVO> result = new PageInfo<>(list);
return ResultVOUtil.success(list);
}

@Override
public ResultVO selectArticleByTypes(SelectByTypeForm form) {
PageHelper.startPage(form.getPageNum(), form.getPageSize());
List<ArticleListVO> list = articleMapper.selectByArticlesByTypeId(form.getTypeId());
PageInfo<ArticleListVO> result = new PageInfo<>(list);
return ResultVOUtil.success(list);
}

Expand Down

0 comments on commit a6b10f8

Please sign in to comment.