search_keyword.go 315 B

123456789101112131415161718
  1. package data_manage
  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.NewOrmUsingDB("data")
  13. _, err = o.Insert(item)
  14. return
  15. }