healthapp
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

21 lines
453 B

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