v0.0.33 Уведомления о лайках
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f0c29ab84a
commit
edddc43d78
@ -3,6 +3,8 @@ package graph
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"tailly_back_v2/internal/domain"
|
||||||
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MarkLikeNotificationAsRead is the resolver for the markLikeNotificationAsRead field.
|
// MarkLikeNotificationAsRead is the resolver for the markLikeNotificationAsRead field.
|
||||||
@ -101,3 +103,12 @@ func (r *queryResolver) GetLikeNotifications(ctx context.Context, unreadOnly *bo
|
|||||||
UnreadCount: unreadCount,
|
UnreadCount: unreadCount,
|
||||||
}, nil
|
}, 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
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user