// Insert func InsertReport(userId int, startDay string, report models.Report) error { report.UserId = userId report.StartDay = startDay report.Status = constant.STATUS_ARI return DB.Debug().Create(&report).Error }
// Update func UpdateReport(id, userId int, startDay string, report models.Report) { report.Id = id report.UserId = userId report.StartDay = startDay report.Status = constant.STATUS_ARI DB.Debug().Where("Status = ?", constant.STATUS_ARI).Save(&report) }