english_report_email_pv.go 787 B

1234567891011121314151617181920212223
  1. package models
  2. import (
  3. "eta_gn/eta_report/global"
  4. "time"
  5. )
  6. // EnglishReportEmailPV 英文研报-邮箱pv
  7. type EnglishReportEmailPV struct {
  8. Id int `gorm:"primaryKey;autoIncrement;column:id"`
  9. ReportId int `gorm:"column:report_id" description:"英文报告ID"`
  10. EmailId int `gorm:"column:email_id" description:"邮箱ID"`
  11. CreateTime time.Time `gorm:"column:create_time" description:"创建时间"`
  12. }
  13. // InsertTrialEnglishReportEmailPV ETA试用平台-新增英文邮箱PV
  14. func InsertTrialEnglishReportEmailPV(item *EnglishReportEmailPV) (err error) {
  15. sql := `INSERT INTO english_report_email_pv(report_id, email_id, create_time) VALUES(?, ?, ?)`
  16. err = global.DEFAULT_DmSQL.Exec(sql, item.ReportId, item.EmailId, item.CreateTime).Error
  17. return
  18. }