search_keyword.go 297 B

123456789101112131415161718
  1. package models
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. type SearchKeyword struct {
  7. Id int `orm:"column(id);pk"`
  8. KeyWord string
  9. CreateTime time.Time
  10. }
  11. func AddSearchKeyword(item *SearchKeyword) (err error) {
  12. o := orm.NewOrm()
  13. _, err = o.Insert(item)
  14. return
  15. }