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
438 B
21 lines
438 B
package handler
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"healthapi/internal/logic"
|
|
"healthapi/internal/svc"
|
|
"healthapi/pkg/response"
|
|
)
|
|
|
|
func GetBasicProfileHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
|
|
return func(w http.ResponseWriter, r *http.Request) {
|
|
l := logic.NewGetBasicProfileLogic(r.Context(), svcCtx)
|
|
resp, err := l.GetBasicProfile()
|
|
if err != nil {
|
|
response.Error(w, err)
|
|
} else {
|
|
response.Success(w, resp)
|
|
}
|
|
}
|
|
}
|
|
|