package glue

import (
	"context"
	"mind/internal/db"
	"mind/internal/models"
)

type Glue struct { repo *db.Repo }

func NewGlue(r *db.Repo) *Glue { return &Glue{repo: r} }

func (g *Glue) CreateConversation(ctx context.Context, ownerID int64, title string) (int64, error) {
	return g.repo.CreateConversation(ctx, ownerID, title)
}

func (g *Glue) ListConversations(ctx context.Context, ownerID int64) ([]models.Conversation, error) {
	return g.repo.ListConversations(ctx, ownerID)
}
