package data_manage import ( "eta/eta_api/global" "eta/eta_api/utils" "time" ) type SearchKeyword struct { Id int `orm:"column(id);pk" gorm:"primaryKey"` KeyWord string CreateTime time.Time } func AddSearchKeyword(item *SearchKeyword) (err error) { o := global.DbMap[utils.DbNameIndex] err = o.Create(item).Error return }