forked from mtusi2026/mtusi2026lab4
13 lines
343 B
Go
13 lines
343 B
Go
package repository
|
|
|
|
import (
|
|
"context"
|
|
"highload/internal/model"
|
|
)
|
|
|
|
type AttachmentTx interface {
|
|
CreateAttachment(ctx context.Context, params CreateAttachmentParams) (*model.Attachment, error)
|
|
ExistsByObjectKey(ctx context.Context, key string) (bool, error)
|
|
GetAttachmentByID(ctx context.Context, id string) (*model.Attachment, error)
|
|
}
|