search_keyword.go 345 B

12345678910111213141516171819
  1. package data_manage
  2. import (
  3. "eta/eta_api/global"
  4. "eta/eta_api/utils"
  5. "time"
  6. )
  7. type SearchKeyword struct {
  8. Id int `orm:"column(id);pk" gorm:"primaryKey"`
  9. KeyWord string
  10. CreateTime time.Time
  11. }
  12. func AddSearchKeyword(item *SearchKeyword) (err error) {
  13. o := global.DbMap[utils.DbNameIndex]
  14. err = o.Create(item).Error
  15. return
  16. }