39 lines
1.2 KiB
Go
39 lines
1.2 KiB
Go
package graph
|
|
|
|
import (
|
|
"context"
|
|
"tailly_back_v2/internal/domain"
|
|
)
|
|
|
|
type chatSessionResolver struct{ *Resolver }
|
|
|
|
// User is the resolver for the user field.
|
|
func (r *chatSessionResolver) User(ctx context.Context, obj *domain.ChatSession) (*domain.User, error) {
|
|
panic("not implemented")
|
|
}
|
|
|
|
// LastMessage is the resolver for the lastMessage field.
|
|
func (r *chatSessionResolver) LastMessage(ctx context.Context, obj *domain.ChatSession) (*domain.Message, error) {
|
|
panic("not implemented")
|
|
}
|
|
|
|
// UnreadCount is the resolver for the unreadCount field.
|
|
func (r *chatSessionResolver) UnreadCount(ctx context.Context, obj *domain.ChatSession) (int, error) {
|
|
panic("not implemented")
|
|
}
|
|
|
|
// Sender is the resolver for the sender field.
|
|
func (r *messageResolver) Sender(ctx context.Context, obj *domain.Message) (*domain.User, error) {
|
|
panic("not implemented")
|
|
}
|
|
|
|
// Receiver is the resolver for the receiver field.
|
|
func (r *messageResolver) Receiver(ctx context.Context, obj *domain.Message) (*domain.User, error) {
|
|
panic("not implemented")
|
|
}
|
|
|
|
// CreatedAt is the resolver for the createdAt field.
|
|
func (r *messageResolver) CreatedAt(ctx context.Context, obj *domain.Message) (string, error) {
|
|
panic("not implemented")
|
|
}
|