Files
mtusi2026lab6/internal/repository/attachment_tx.go

14 lines
474 B
Go

package repository
import (
"context"
"highload/internal/model"
)
type AttachmentTx interface {
CreateAttachment(ctx context.Context, params CreateAttachmentParams) (*model.Attachment, error)
CreateQueued(ctx context.Context, id, chatID, ownerID, mime, sha256, key, filename string, size int64) (*model.Attachment, error)
ExistsByObjectKey(ctx context.Context, key string) (bool, error)
GetAttachmentByID(ctx context.Context, id string) (*model.Attachment, error)
}