ЛР 4: вложения в S3 и двусторонняя сверка хранилищ
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user