This commit is contained in:
Yang Qing 2019-07-05 16:58:39 +08:00
parent bb6023b24b
commit 983b0e3481

View File

@ -24,19 +24,19 @@ import (
// taggable_type - string
type SimplePost struct {
Id int
ID int
Name string
Tags []*SimpleTag `gorm:"many2many:taggables;polymorphic:taggable;"`
}
type SimpleVideo struct {
Id int
ID int
Name string
Tags []*SimpleTag `gorm:"many2many:taggables;polymorphic:taggable;polymorphic_value:video"`
}
type SimpleTag struct {
Id int
ID int
Name string
}