From edddc43d784b9c3033bd081e3535f78cce7fa602 Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 18 Sep 2025 00:31:31 +0300 Subject: [PATCH] =?UTF-8?q?v0.0.33=20=D0=A3=D0=B2=D0=B5=D0=B4=D0=BE=D0=BC?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BE=20=D0=BB=D0=B0=D0=B9?= =?UTF-8?q?=D0=BA=D0=B0=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/http/graph/like_notification_resolvers.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/internal/http/graph/like_notification_resolvers.go b/internal/http/graph/like_notification_resolvers.go index 0794dc2..b473e1c 100644 --- a/internal/http/graph/like_notification_resolvers.go +++ b/internal/http/graph/like_notification_resolvers.go @@ -3,6 +3,8 @@ package graph import ( "context" "fmt" + "tailly_back_v2/internal/domain" + "time" ) // MarkLikeNotificationAsRead is the resolver for the markLikeNotificationAsRead field. @@ -101,3 +103,12 @@ func (r *queryResolver) GetLikeNotifications(ctx context.Context, unreadOnly *bo UnreadCount: unreadCount, }, nil } + +// LikeNotification returns LikeNotificationResolver implementation. +func (r *Resolver) LikeNotification() LikeNotificationResolver { return &likeNotificationResolver{r} } + +type likeNotificationResolver struct{ *Resolver } + +func (r *likeNotificationResolver) CreatedAt(ctx context.Context, obj *domain.LikeNotification) (string, error) { + return obj.CreatedAt.Format(time.RFC3339), nil +}