2024-02-02 16:50:23 +00:00
|
|
|
package models
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
2024-03-02 17:23:11 +00:00
|
|
|
type CommentLike struct {
|
2024-02-02 16:50:23 +00:00
|
|
|
ID uint `json:"id" gorm:"primaryKey"`
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
UpdatedAt time.Time `json:"updated_at"`
|
2024-03-02 17:23:11 +00:00
|
|
|
ArticleID *uint `json:"article_id"`
|
|
|
|
MomentID *uint `json:"moment_id"`
|
|
|
|
CommentID *uint `json:"comment_id"`
|
2024-02-02 16:50:23 +00:00
|
|
|
AccountID uint `json:"account_id"`
|
|
|
|
}
|
|
|
|
|
2024-03-02 17:23:11 +00:00
|
|
|
type CommentDislike struct {
|
2024-02-02 16:50:23 +00:00
|
|
|
ID uint `json:"id" gorm:"primaryKey"`
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
UpdatedAt time.Time `json:"updated_at"`
|
2024-03-02 17:23:11 +00:00
|
|
|
ArticleID *uint `json:"article_id"`
|
|
|
|
MomentID *uint `json:"moment_id"`
|
|
|
|
CommentID *uint `json:"comment_id"`
|
|
|
|
AccountID uint `json:"account_id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type MomentLike struct {
|
|
|
|
ID uint `json:"id" gorm:"primaryKey"`
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
|
|
ArticleID *uint `json:"article_id"`
|
|
|
|
MomentID *uint `json:"moment_id"`
|
|
|
|
CommentID *uint `json:"comment_id"`
|
|
|
|
AccountID uint `json:"account_id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type MomentDislike struct {
|
|
|
|
ID uint `json:"id" gorm:"primaryKey"`
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
|
|
ArticleID *uint `json:"article_id"`
|
|
|
|
MomentID *uint `json:"moment_id"`
|
|
|
|
CommentID *uint `json:"comment_id"`
|
|
|
|
AccountID uint `json:"account_id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleLike struct {
|
|
|
|
ID uint `json:"id" gorm:"primaryKey"`
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
|
|
ArticleID *uint `json:"article_id"`
|
|
|
|
MomentID *uint `json:"moment_id"`
|
|
|
|
CommentID *uint `json:"comment_id"`
|
|
|
|
AccountID uint `json:"account_id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleDislike struct {
|
|
|
|
ID uint `json:"id" gorm:"primaryKey"`
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
|
|
ArticleID *uint `json:"article_id"`
|
|
|
|
MomentID *uint `json:"moment_id"`
|
|
|
|
CommentID *uint `json:"comment_id"`
|
2024-02-02 16:50:23 +00:00
|
|
|
AccountID uint `json:"account_id"`
|
|
|
|
}
|