article_view_record.go 674 B

12345678910111213141516171819202122232425
  1. package models
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. type CygxArticleViewRecord struct {
  7. Id int `orm:"column(id);pk"`
  8. ArticleId int
  9. UserId int
  10. CreateTime time.Time
  11. Mobile string `description:"手机号"`
  12. Email string `description:"邮箱"`
  13. CompanyId int `description:"公司id"`
  14. CompanyName string `description:"公司名称"`
  15. RegisterPlatform int `description:"来源 1小程序,2:网页"`
  16. }
  17. // 添加收藏信息
  18. func AddCygxArticleViewRecord(item *CygxArticleViewRecord) (lastId int64, err error) {
  19. o := orm.NewOrm()
  20. lastId, err = o.Insert(item)
  21. return
  22. }