-
Notifications
You must be signed in to change notification settings - Fork 589
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #275 from alimy/pr-comment-upvote
add comment thumbs up/down feature support
- Loading branch information
Showing
68 changed files
with
1,169 additions
and
189 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright 2023 ROC. All rights reserved. | ||
// Use of this source code is governed by a MIT style | ||
// license that can be found in the LICENSE file. | ||
|
||
package cs | ||
|
||
type CommentThumbs struct { | ||
UserID int64 `json:"user_id"` | ||
TweetID int64 `json:"tweet_id"` | ||
CommentID int64 `json:"comment_id"` | ||
ReplyID int64 `json:"reply_id"` | ||
CommentType int8 `json:"comment_type"` | ||
IsThumbsUp int8 `json:"is_thumbs_up"` | ||
IsThumbsDown int8 `json:"is_thumbs_down"` | ||
} | ||
|
||
type CommentThumbsList []*CommentThumbs | ||
|
||
type CommentThumbsMap map[int64]*CommentThumbs |
Oops, something went wrong.