first commit

This commit is contained in:
2025-01-10 00:09:25 +08:00
commit f54ead0f90
215 changed files with 16058 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
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)
}
}