comment_upvote_model.go 424 B

1234567891011121314
  1. package model
  2. // CommentUpvote 评论/回复点赞
  3. type CommentUpvote struct {
  4. *Model
  5. CommentId int64 `json:"comment_id" gorm:"comment_id"` // comment ID
  6. UserId int64 `json:"user_id" gorm:"user_id"` // 用户ID
  7. ActionType int32 `json:"action_type" gorm:"action_type"` // 对操作的类型0-评论1-回复
  8. }
  9. // TableName 表名称
  10. func (*CommentUpvote) TableName() string {
  11. return "p_comment_upvote"
  12. }