Skip to content

Commit

Permalink
Merge pull request #182 from Abhimanyu-dev/main
Browse files Browse the repository at this point in the history
Added Walk In
  • Loading branch information
bmerchant22 authored Nov 30, 2024
2 parents 7cf683c + 94b747b commit 6491ded
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions application/admin.student.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down
1 change: 1 addition & 0 deletions application/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,5 @@ const (
ApplicationSubmitted EventType = "Application"
Recruited EventType = "Recruited"
PIOPPOACCEPTED EventType = "PIO-PPO"
WALKIN EventType = "Walk-In"
)
1 change: 1 addition & 0 deletions application/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6491ded

Please sign in to comment.