report_audio_record.go 450 B

123456789101112131415161718192021
  1. package models
  2. import (
  3. "rdluck_tools/orm"
  4. "time"
  5. )
  6. type ReportAudioRecord struct {
  7. Id int `orm:"column(id);pk"`
  8. UserId int `description:"用户id"`
  9. ReportId int `description:"报告id"`
  10. CreateTime time.Time `description:"创建时间"`
  11. }
  12. //添加报告音频阅读记录
  13. func AddReportAudioRecord(item *ReportAudioRecord) (err error) {
  14. o := orm.NewOrm()
  15. o.Using("rddp")
  16. _, err = o.Insert(item)
  17. return
  18. }