2025-01-01 02:00:06 +08:00
|
|
|
package notification
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
2025-04-27 12:17:18 +08:00
|
|
|
"tyc-server/app/main/api/internal/logic/notification"
|
|
|
|
"tyc-server/app/main/api/internal/svc"
|
2025-04-09 15:58:06 +08:00
|
|
|
"tyc-server/common/result"
|
2025-01-01 02:00:06 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
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)
|
|
|
|
}
|
|
|
|
}
|