ycc-server/app/main/api/internal/handler/user/detailhandler.go

18 lines
391 B
Go
Raw Normal View History

2025-06-19 17:12:48 +08:00
package user
import (
"net/http"
"ycc-server/app/main/api/internal/logic/user"
"ycc-server/app/main/api/internal/svc"
"ycc-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)
}
}