search_key_word_log.go 1000 B

123456789101112131415161718192021222324252627
  1. package models
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. type CygxSearchKeyWordLog struct {
  7. Id int `orm:"column(id);" description:"id"`
  8. KeyWord string `description:"搜索关键词"`
  9. UserId int `description:"用户ID"`
  10. CreateTime time.Time `description:"搜索时间"`
  11. Mobile string `description:"手机号"`
  12. Email string `description:"邮箱"`
  13. CompanyId int `description:"公司id"`
  14. CompanyName string `description:"公司名称"`
  15. RealName string `description:"用户实际名称"`
  16. Source int `description:"来源;1:纪要、2:图表、3:纪要/图表、4:产业资源包、5:报告、6:活动"`
  17. RegisterPlatform int `description:"来源 1小程序,2:网页"`
  18. }
  19. //新增搜索
  20. func AddSearchKeyWordLog(item *CygxSearchKeyWordLog) (lastId int64, err error) {
  21. o := orm.NewOrm()
  22. lastId, err = o.Insert(item)
  23. return
  24. }