File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ func (commentService *CommentServiceImpl) CommentAction(comment dao.Comment) (Co
49
49
User : user ,
50
50
Content : commentRes .Content ,
51
51
CreateDate : commentRes .CreatedAt .Format (config .GO_STARTER_TIME ),
52
- LikeCount : int64 (rand .Intn (10000 )),
52
+ LikeCount : int64 (rand .Intn (100 )),
53
53
TeaseCount : int64 (rand .Intn (100 )),
54
54
}
55
55
// redis操作:将发表的评论id存入redis
@@ -193,7 +193,7 @@ func (commentService *CommentServiceImpl) CombineComment(comment *Comment, plain
193
193
comment .Id = plainComment .Id
194
194
comment .Content = plainComment .Content
195
195
comment .CreateDate = plainComment .CreatedAt .Format (config .GO_STARTER_TIME )
196
- comment .LikeCount = int64 (rand .Intn (10000 ))
196
+ comment .LikeCount = int64 (rand .Intn (100 ))
197
197
comment .TeaseCount = int64 (rand .Intn (100 ))
198
198
return nil
199
199
}
You can’t perform that action at this time.
0 commit comments