create.go 304 B

123456789
  1. package yb_activity_view_log
  2. import "hongze/hongze_yb/global"
  3. // CreateInBatches 批量新增活动提醒记录
  4. func CreateInBatches(activityLogs []*YbActivityViewLog) (err error) {
  5. err = global.DEFAULT_MYSQL.Model(YbActivityViewLog{}).CreateInBatches(activityLogs, len(activityLogs)).Error
  6. return
  7. }