search_keyword.go 319 B

12345678910111213141516171819
  1. package data_manage
  2. import (
  3. "github.com/rdlucklib/rdluck_tools/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. o.Using("data")
  14. _, err = o.Insert(item)
  15. return
  16. }