-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
280 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
HELP.md | ||
target/ | ||
!.mvn/wrapper/maven-wrapper.jar | ||
!**/src/main/**/target/ | ||
!**/src/test/**/target/ | ||
|
||
### STS ### | ||
.apt_generated | ||
.classpath | ||
.factorypath | ||
.project | ||
.settings | ||
.springBeans | ||
.sts4-cache | ||
|
||
### IntelliJ IDEA ### | ||
.idea | ||
*.iws | ||
*.iml | ||
*.ipr | ||
|
||
### NetBeans ### | ||
/nbproject/private/ | ||
/nbbuild/ | ||
/dist/ | ||
/nbdist/ | ||
/.nb-gradle/ | ||
build/ | ||
!**/src/main/**/build/ | ||
!**/src/test/**/build/ | ||
|
||
### VS Code ### | ||
.vscode/ | ||
|
||
.mvn/ | ||
.mvnw.cmd | ||
.mvnw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,6 @@ | |
|
||
/** | ||
* <p> | ||
* Ç°¶Ë¿ØÖÆÆ÷ | ||
* </p> | ||
* | ||
* @author sofency | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
|
||
/** | ||
* <p> | ||
* Ç°¶Ë¿ØÖÆÆ÷ | ||
* 前端控制器 | ||
* </p> | ||
* | ||
* @author sofency | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,23 +2,41 @@ | |
|
||
import com.sofency.top.nuxtblog.entity.Comment; | ||
import lombok.*; | ||
|
||
import java.util.List; | ||
import lombok.experimental.Accessors; | ||
|
||
/** | ||
* <p>Project: nuxt-blog - CommentDTO | ||
* <p>Powered by echo On 2024-03-17 12:07:13 | ||
* <p>Project: nuxt-blog - CommentVO | ||
* <p>Powered by echo On 2024-03-21 20:36:46 | ||
* | ||
* @author sofency [[email protected]] | ||
* @version 1.0 | ||
* @since 17 | ||
*/ | ||
@Getter | ||
@Setter | ||
@Accessors(chain = true) | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Builder | ||
public class CommentDTO { | ||
private Comment parentComment; | ||
private List<Comment> childComment; | ||
@ToString | ||
public class CommentDTO extends Comment { | ||
private String username; | ||
private String parentName; | ||
private String replyName; | ||
|
||
public CommentDTO(Comment comment) { | ||
this.setId(comment.getId()); | ||
this.setUserId(comment.getUserId()); | ||
this.setContent(comment.getContent()); | ||
this.setCreateTime(comment.getCreateTime()); | ||
this.setBlogId(comment.getBlogId()); | ||
this.setDeleted(comment.getDeleted()); | ||
this.setIpAddress(comment.getIpAddress()); | ||
this.setIpSource(comment.getIpSource()); | ||
this.setParentId(comment.getParentId()); | ||
this.setReplyUserId(comment.getReplyUserId()); | ||
this.setReview(comment.getReview()); | ||
this.setStatus(comment.getStatus()); | ||
this.setUpdateTime(comment.getUpdateTime()); | ||
this.setDeleted(comment.getDeleted()); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
nuxt-blog/src/main/java/com/sofency/top/nuxtblog/dto/CommentListDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.sofency.top.nuxtblog.dto; | ||
|
||
import com.sofency.top.nuxtblog.entity.Comment; | ||
import lombok.*; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* <p>Project: nuxt-blog - CommentDTO | ||
* <p>Powered by echo On 2024-03-17 12:07:13 | ||
* | ||
* @author sofency [[email protected]] | ||
* @version 1.0 | ||
* @since 17 | ||
*/ | ||
@Getter | ||
@Setter | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Builder | ||
public class CommentListDTO { | ||
private CommentDTO parentComment; | ||
private List<CommentDTO> childComment; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.