diff --git a/application/admin.student.go b/application/admin.student.go index 4d9cf21..15b966a 100644 --- a/application/admin.student.go +++ b/application/admin.student.go @@ -136,6 +136,11 @@ func postStudentsByEventHandler(mail_channel chan mail.Mail) gin.HandlerFunc { msg += " in the profile of " + proforma.Profile mail_channel <- mail.GenerateMails(req.Emails, "Congratulations", msg) + } else if evnt.Name == string(WALKIN) { + msg := "Dear student" + "\n\n" + msg += "You have been selected for the walk in interview for the profile " + proforma.Profile + " by " + proforma.CompanyName + "." + + mail_channel <- mail.GenerateMails(req.Emails, "Update on Application", msg) } else { msg := "Dear student" + "\n\n" msg += "You have advanced to the stage of " + evnt.Name + " for the recruitment process of profile " diff --git a/application/config.go b/application/config.go index d2b9c36..260c312 100644 --- a/application/config.go +++ b/application/config.go @@ -53,4 +53,5 @@ const ( ApplicationSubmitted EventType = "Application" Recruited EventType = "Recruited" PIOPPOACCEPTED EventType = "PIO-PPO" + WALKIN EventType = "Walk-In" ) diff --git a/application/model.go b/application/model.go index b69ef63..290a111 100644 --- a/application/model.go +++ b/application/model.go @@ -72,6 +72,7 @@ type ApplicationQuestion struct { gorm.Model ProformaID uint `json:"proforma_id" gorm:"index;->;<-:create"` Proforma Proforma `json:"-" gorm:"foreignkey:ProformaID"` + Event string `json:"event"` Type ApplicationQuestionType `json:"type"` Question string `json:"question"` Options string `json:"options"` //csv