search_keyword.go 289 B

1234567891011121314151617
  1. package data_manage
  2. import (
  3. "eta_gn/eta_api/global"
  4. "time"
  5. )
  6. type SearchKeyword struct {
  7. Id int `gorm:"primaryKey" `
  8. KeyWord string
  9. CreateTime time.Time
  10. }
  11. func AddSearchKeyword(item *SearchKeyword) (err error) {
  12. err = global.DmSQL["data"].Create(item).Error
  13. return
  14. }