| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
Comment |
build() |
Comment.Builder |
cid(String cid)
创建评论时去重
示例值:"generate-a-uuid-here"
|
Comment.Builder |
content(String content)
评论内容
示例值:"[[{\"tag\":\"text\",\"text\":\"豪华中型车…………\"},{\"tag\":\"a\",\"text\":\"查看原文\",\"href\":\"https://www.autohome.com.cn/advice/202204/1244455.html\"}]]"
|
Comment.Builder |
createTime(String createTime)
评论创建时间
示例值:"2022-05-23T00:00:00+08:00"
|
Comment.Builder |
id(String id)
评论 ID
示例值:"248381240"
|
Comment.Builder |
imageKey(String imageKey)
评论图片的key
示例值:"img_v2_xxxxxx"
|
Comment.Builder |
isHot(Boolean isHot)
是否热评
示例值:false
|
Comment.Builder |
postId(String postId)
评论所属实体的ID
示例值:"248381241"
|
Comment.Builder |
reactionSet(ReactionSet reactionSet)
评论 reactions
示例值:
|
Comment.Builder |
replyCommentId(String replyCommentId)
回复的评论ID
示例值:""
|
Comment.Builder |
rootCommentId(String rootCommentId)
根评论ID
示例值:""
|
Comment.Builder |
userId(String userId)
评论所属用户ID
示例值:"ou_xxxxx"
|
Comment.Builder |
userType(CommentUserTypeEnum userType)
表情回复人类型
示例值:1
|
Comment.Builder |
userType(Integer userType)
表情回复人类型
示例值:1
|
public Comment.Builder userId(String userId)
示例值:"ou_xxxxx"
userId - public Comment.Builder content(String content)
示例值:"[[{\"tag\":\"text\",\"text\":\"豪华中型车…………\"},{\"tag\":\"a\",\"text\":\"查看原文\",\"href\":\"https://www.autohome.com.cn/advice/202204/1244455.html\"}]]"
content - public Comment.Builder imageKey(String imageKey)
示例值:"img_v2_xxxxxx"
imageKey - public Comment.Builder isHot(Boolean isHot)
示例值:false
isHot - public Comment.Builder reactionSet(ReactionSet reactionSet)
示例值:
reactionSet - public Comment.Builder id(String id)
示例值:"248381240"
id - public Comment.Builder createTime(String createTime)
示例值:"2022-05-23T00:00:00+08:00"
createTime - public Comment.Builder postId(String postId)
示例值:"248381241"
postId - public Comment.Builder replyCommentId(String replyCommentId)
示例值:""
replyCommentId - public Comment.Builder rootCommentId(String rootCommentId)
示例值:""
rootCommentId - public Comment.Builder cid(String cid)
示例值:"generate-a-uuid-here"
cid - public Comment.Builder userType(Integer userType)
示例值:1
userType - public Comment.Builder userType(CommentUserTypeEnum userType)
示例值:1
userType - CommentUserTypeEnumpublic Comment build()
Copyright © 2025. All rights reserved.