package handler import ( "net/http" "healthapi/internal/logic" "healthapi/internal/svc" "healthapi/pkg/response" ) func CompleteSurveyHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { l := logic.NewCompleteSurveyLogic(r.Context(), svcCtx) resp, err := l.CompleteSurvey() if err != nil { response.Error(w, err) } else { response.Success(w, resp) } } }