tydata-server/app/user/cmd/api/internal/handler/notification/getnotificationshandler.go
2025-01-10 00:09:25 +08:00

18 lines
462 B
Go

package notification
import (
"net/http"
"tydata-server/app/user/cmd/api/internal/logic/notification"
"tydata-server/app/user/cmd/api/internal/svc"
"tydata-server/common/result"
)
func GetNotificationsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
l := notification.NewGetNotificationsLogic(r.Context(), svcCtx)
resp, err := l.GetNotifications()
result.HttpResult(r, w, resp, err)
}
}