package repository

import (
	"context"

	"haixun-backend/internal/model/job/domain/entity"
)

type TemplateRepository interface {
	EnsureIndexes(ctx context.Context) error
	List(ctx context.Context) ([]*entity.Template, error)
	FindByType(ctx context.Context, templateType string) (*entity.Template, error)
	Upsert(ctx context.Context, template *entity.Template) (*entity.Template, error)
}
