Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Walk In #182

Merged
merged 2 commits into from
Nov 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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