新增后台管理

This commit is contained in:
2025-06-08 15:07:04 +08:00
parent 9f51a4c403
commit 7762ad46fe
204 changed files with 15874 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)
}
}