docs: update docs

This commit is contained in:
开源海哥 2023-07-24 09:16:54 +08:00
parent 971c668362
commit 047a1d71e6

View File

@ -21,7 +21,6 @@ class ArticleServiceTest {
.where(ARTICLE.ID.ge(100)) .where(ARTICLE.ID.ge(100))
.list(); .list();
} }
} }
``` ```
@ -116,15 +115,14 @@ ArticleVo.java
public class ArticleVo { public class ArticleVo {
private Long id; private Long id;
private Long accountId; private Long accountId;
private String title; private String title;
private String content; private String content;
//评论量最多的内容 //评论量最多的内容
private Long maxComments; private Long maxComments;
//getter setter
} }
``` ```
@ -148,11 +146,8 @@ ArticleVo.java 及其 **文章分类** 定义:
public class ArticleVo { public class ArticleVo {
private Long id; private Long id;
private Long accountId; private Long accountId;
private String title; private String title;
private String content; private String content;
//文章和分类的 多对多 关系配置 //文章和分类的 多对多 关系配置
@ -162,6 +157,8 @@ public class ArticleVo {
targetField = "id", joinTargetColumn = "category_id" targetField = "id", joinTargetColumn = "category_id"
) )
private List<ArticleCategory> categories; private List<ArticleCategory> categories;
//getter setter
} }
``` ```