package model type Knowledge struct { ID int `gorm:"primaryKey;column:id" json:"id"` Language string `gorm:"column:language" json:"language"` Category string `gorm:"column:category" json:"category"` Title string `gorm:"column:title" json:"title"` Body string `gorm:"column:body" json:"body"` Sort *int `gorm:"column:sort" json:"sort"` Show bool `gorm:"column:show" json:"show"` CreatedAt int64 `gorm:"column:created_at" json:"created_at"` UpdatedAt int64 `gorm:"column:updated_at" json:"updated_at"` } func (Knowledge) TableName() string { return "v2_knowledge" }