func SubmitFeedbackByStudent(w http.ResponseWriter, r *http.Request, userId string, userType models.UserType) interface{} { reservationId := r.PostFormValue("reservation_id") name := r.PostFormValue("name") problem := r.PostFormValue("problem") choices := r.PostFormValue("choices") score := r.PostFormValue("score") feedback := r.PostFormValue("feedback") studentId := r.PostFormValue("student_id") var result = map[string]interface{}{"state": "SUCCESS"} var sl = buslogic.StudentLogic{} _, err := sl.SubmitFeedbackByStudent(reservationId, name, problem, choices, score, feedback, studentId) if err != nil { ErrorHandler(w, r, err) return nil } return result }