Files
bdrp-server/app/main/api/internal/handler/notification/getnotificationshandler.go
2026-04-01 15:43:01 +08:00

18 lines
448 B
Go

package notification
import (
"net/http"
"bdrp-server/app/main/api/internal/logic/notification"
"bdrp-server/app/main/api/internal/svc"
"bdrp-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)
}
}