article_view_record.go 373 B

1234567891011121314151617181920
  1. package models
  2. import (
  3. "rdluck_tools/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. }
  12. //添加收藏信息
  13. func AddCygxArticleViewRecord(item *CygxArticleViewRecord) (lastId int64, err error) {
  14. o := orm.NewOrm()
  15. lastId, err = o.Insert(item)
  16. return
  17. }