english_report_email_pv.go 705 B

12345678910111213141516171819202122
  1. package models
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. // EnglishReportEmailPV 英文研报-邮箱pv
  7. type EnglishReportEmailPV struct {
  8. Id int `orm:"column(id);pk"`
  9. ReportId int `description:"英文报告ID"`
  10. EmailId int `description:"邮箱ID"`
  11. CreateTime time.Time `description:"创建时间"`
  12. }
  13. // InsertTrialEnglishReportEmailPV ETA试用平台-新增英文邮箱PV
  14. func InsertTrialEnglishReportEmailPV(item *EnglishReportEmailPV) (err error) {
  15. o := orm.NewOrm()
  16. sql := `INSERT INTO english_report_email_pv(report_id, email_id, create_time) VALUES(?, ?, ?)`
  17. _, err = o.Raw(sql, item.ReportId, item.EmailId, item.CreateTime).Exec()
  18. return
  19. }