1234567891011121314151617181920212223 |
- package models
- import (
- "rdluck_tools/orm"
- "time"
- )
- type ReportViewRecord struct {
- Id int `orm:"column(id);pk"`
- UserId int `description:"用户id"`
- ReportId int `description:"报告id"`
- CreateTime time.Time `description:"创建时间"`
- }
- //添加报告阅读记录
- func AddReportViewRecord(item *ReportViewRecord) (err error) {
- o := orm.NewOrm()
- o.Using("rddp")
- _, err = o.Insert(item)
- return
- }
- //修改最新阅读时间
|