Merge branch 'master' into dev

# Conflicts:
#	src/main/java/com/rymcu/vertical/service/impl/ArticleServiceImpl.java
#	src/main/java/com/rymcu/vertical/service/impl/TagServiceImpl.java
#	src/main/java/com/rymcu/vertical/util/BaiDuUtils.java
#	src/main/java/com/rymcu/vertical/web/api/comment/CommentController.java
This commit is contained in:
ronger 2020-03-30 17:15:01 +08:00
parent c3e66cafcd
commit 2d1197a5a7
7 changed files with 92 additions and 0 deletions

View File

@ -41,10 +41,14 @@ public class ArticleDTO {
private String articlePermalink; private String articlePermalink;
/** 站内链接 */ /** 站内链接 */
private String articleLink; private String articleLink;
/** 文章状态 */
private String articleStatus;
/** 更新时间 */ /** 更新时间 */
private Date updatedTime; private Date updatedTime;
private Author articleAuthor; private Author articleAuthor;
private List<ArticleTagDTO> tags; private List<ArticleTagDTO> tags;
private List<CommentDTO> articleComments;
} }

View File

@ -7,8 +7,13 @@ import lombok.Data;
*/ */
@Data @Data
public class ArticleTagDTO { public class ArticleTagDTO {
private Integer idArticleTag;
private Integer idTag; private Integer idTag;
private Integer idArticle;
private String tagTitle; private String tagTitle;
private String tagUri; private String tagUri;

View File

@ -2,6 +2,9 @@ package com.rymcu.vertical.dto;
import lombok.Data; import lombok.Data;
/**
* @author ronger
*/
@Data @Data
public class Author { public class Author {

View File

@ -0,0 +1,41 @@
package com.rymcu.vertical.dto;
import lombok.Data;
import java.util.Date;
/**
* @author ronger
*/
@Data
public class CommentDTO {
private Integer idComment;
/** 评论内容 */
private String commentContent;
/** 作者 id */
private Integer commentAuthorId;
/** 文章 id */
private Integer commentArticleId;
/** 锚点 url */
private String commentSharpUrl;
/** 父评论 id */
private Integer commentOriginalCommentId;
/** 父评论作者头像 */
private String commentOriginalAuthorThumbnailURL;
/** 父评论作者昵称 */
private String commentOriginalAuthorNickname;
/** 状态 */
private String commentStatus;
/** 0公开回帖1匿名回帖 */
private String commentAnonymous;
/** 回帖计数 */
private Integer commentReplyCount;
/** 0所有人可见1仅楼主和自己可见 */
private String commentVisible;
/** 创建时间 */
private Date createdTime;
private Author commenter;
private String timeAgo;
}

View File

@ -0,0 +1,17 @@
package com.rymcu.vertical.dto;
import lombok.Data;
import java.io.Serializable;
/**
* @author ronger
*/
@Data
public class LabelModel implements Serializable {
private String label;
private String value;
}

View File

@ -2,6 +2,9 @@ package com.rymcu.vertical.dto;
import lombok.Data; import lombok.Data;
/**
* @author ronger
*/
@Data @Data
public class UserDTO { public class UserDTO {
@ -14,4 +17,6 @@ public class UserDTO {
private String avatarUrl; private String avatarUrl;
private String nickname; private String nickname;
private String signature;
} }

View File

@ -0,0 +1,17 @@
package com.rymcu.vertical.dto;
import lombok.Data;
/**
* @author ronger
*/
@Data
public class UserRegisterInfoDTO {
private String email;
private String password;
private String code;
}