package model import "time" // SensitiveWord 敏感词表(全局屏蔽用) type SensitiveWord struct { ID uint `gorm:"primaryKey" json:"id"` Word string `gorm:"size:128;uniqueIndex;not null" json:"word"` Category string `gorm:"size:32;default:other" json:"category"` // politics/porn/violence/advertising/other Enabled bool `gorm:"default:true" json:"enabled"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }