This commit is contained in:
liangzai
2026-01-30 16:51:19 +08:00
commit 4609219a4d
606 changed files with 65580 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
package notification
import (
"net/http"
"tyass-server/app/main/api/internal/logic/notification"
"tyass-server/app/main/api/internal/svc"
"tyass-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)
}
}