ycc-server/app/main/api/internal/handler/notification/getnotificationshandler.go
2025-06-19 17:12:48 +08:00

18 lines
445 B
Go

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