fix typo
This commit is contained in:
parent
bb6023b24b
commit
983b0e3481
@ -24,19 +24,19 @@ import (
|
|||||||
// taggable_type - string
|
// taggable_type - string
|
||||||
|
|
||||||
type SimplePost struct {
|
type SimplePost struct {
|
||||||
Id int
|
ID int
|
||||||
Name string
|
Name string
|
||||||
Tags []*SimpleTag `gorm:"many2many:taggables;polymorphic:taggable;"`
|
Tags []*SimpleTag `gorm:"many2many:taggables;polymorphic:taggable;"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type SimpleVideo struct {
|
type SimpleVideo struct {
|
||||||
Id int
|
ID int
|
||||||
Name string
|
Name string
|
||||||
Tags []*SimpleTag `gorm:"many2many:taggables;polymorphic:taggable;polymorphic_value:video"`
|
Tags []*SimpleTag `gorm:"many2many:taggables;polymorphic:taggable;polymorphic_value:video"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type SimpleTag struct {
|
type SimpleTag struct {
|
||||||
Id int
|
ID int
|
||||||
Name string
|
Name string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user