v0.0.33 Уведомления о лайках
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
admin 2025-09-18 00:31:31 +03:00
parent f0c29ab84a
commit edddc43d78

View File

@ -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
}