package kw import ( "time" ) type Kw struct { ID int64 `json:"id" db:"id" gorm:"primaryKey;autoIncrement"` Kw string `json:"kw" db:"kw" gorm:"column:kw"` Reply string `json:"reply" db:"reply" gorm:"column:reply"` GroupID string `json:"group_id" db:"group_id" gorm:"column:group_id"` CreatedBy string `json:"created_by" db:"created_by" gorm:"column:created_by"` CreatedAt time.Time `json:"created_at" db:"created_at" gorm:"column:created_at;autoCreateTime"` } // TableName 指定表名 func (Kw) TableName() string { return "kw" }