feat(video): add like/unlike/isliked/getlikescount APIs for videos
This commit is contained in:
10
internal/video/like_entity.go
Normal file
10
internal/video/like_entity.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package video
|
||||
|
||||
import "time"
|
||||
|
||||
type Like struct {
|
||||
ID uint `gorm:"primaryKey"`
|
||||
VideoID uint `gorm:"index, not null"`
|
||||
AccountID uint `gorm:"index, not null"`
|
||||
CreatedAt time.Time
|
||||
}
|
||||
Reference in New Issue
Block a user