Commit 1250055d authored by 刘基明's avatar 刘基明

添加评论返回

parent 69087f35
......@@ -24,6 +24,7 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.Comparator;
import java.util.List;
import java.util.Set;
......@@ -67,6 +68,7 @@ public class CommentManager {
.authorId(userId)
.content(req.getComment())
.commentType(CommentTypeEnum.THEME.getCode())
.createTime(LocalDateTime.now())
.build();
commentService.insertComment(commentEntity);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment