You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
282 B

package models
type Tag struct {
// body
Title string `gorm:"type:varchar(255)" json:"title"`
State bool `gorm:"" json:"state"`
Order int `gorm:"" json:"order"`
// basic models
Model
// association
Contents []Content `json:"contents" gorm:"many2many:contentATag"`
}