- package model
- // CommentUpvote 评论/回复点赞
- type CommentUpvote struct {
- *Model
- CommentId int64 `json:"comment_id" gorm:"comment_id"` // comment ID
- UserId int64 `json:"user_id" gorm:"user_id"` // 用户ID
- ActionType int32 `json:"action_type" gorm:"action_type"` // 对操作的类型0-评论1-回复
- }
- // TableName 表名称
- func (*CommentUpvote) TableName() string {
- return "p_comment_upvote"
- }
|