2025-06-08 15:07:04 +08:00
|
|
|
package notification
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
2025-06-08 15:14:34 +08:00
|
|
|
"tydata-server/app/main/api/internal/logic/notification"
|
|
|
|
"tydata-server/app/main/api/internal/svc"
|
2025-06-08 15:07:04 +08:00
|
|
|
"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)
|
|
|
|
}
|
|
|
|
}
|