user_search_key_word.go 484 B

123456789101112131415161718192021
  1. package models
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. type CygxUserSearchKeyWord struct {
  7. Id int `orm:"column(id);" description:"id"`
  8. KeyWord string `description:"关键词"`
  9. PageType string `description:"页面类型,活动搜索:ActivitSearch"`
  10. UserId int
  11. CreateTime time.Time
  12. }
  13. //新增
  14. func AddUserSearchKeyWord(item *CygxUserSearchKeyWord) (lastId int64, err error) {
  15. o := orm.NewOrm()
  16. lastId, err = o.Insert(item)
  17. return
  18. }