1234567891011121314151617181920 |
- package models
- import (
- "rdluck_tools/orm"
- "time"
- )
- type CygxArticleViewRecord struct {
- Id int `orm:"column(id);pk"`
- ArticleId int
- UserId int
- CreateTime time.Time
- }
- //添加收藏信息
- func AddCygxArticleViewRecord(item *CygxArticleViewRecord) (lastId int64, err error) {
- o := orm.NewOrm()
- lastId, err = o.Insert(item)
- return
- }
|