package notification

import (
	"net/http"

	"in-server/app/main/api/internal/logic/notification"
	"in-server/app/main/api/internal/svc"
	"in-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)
	}
}
