package user

import (
	"net/http"

	"hm-server/app/main/api/internal/logic/user"
	"hm-server/app/main/api/internal/svc"
	"hm-server/common/result"
)

func DetailHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		l := user.NewDetailLogic(r.Context(), svcCtx)
		resp, err := l.Detail()
		result.HttpResult(r, w, resp, err)
	}
}
