article_view_record.go 561 B

123456789101112131415161718192021222324
  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. }
  16. //添加收藏信息
  17. func AddCygxArticleViewRecord(item *CygxArticleViewRecord) (lastId int64, err error) {
  18. o := orm.NewOrm()
  19. lastId, err = o.Insert(item)
  20. return
  21. }