package models import ( "rdluck_tools/orm" "time" ) type CygxSearchKeyWord struct { Id int `orm:"column(id);" description:"id"` KeyWord string UserId int CreateTime time.Time } //新增文章 func AddSearchKeyWord(item *CygxSearchKeyWord) (lastId int64, err error) { o := orm.NewOrm() lastId, err = o.Insert(item) return }