Files
online-backend/internal/admin/cards/storage.go
2026-07-13 18:47:35 +05:00

12 lines
372 B
Go

package cards
import "context"
type Repository interface {
List(ctx context.Context, filter ListFilter) (ListCardDTO, error)
GetByID(ctx context.Context, id int64) (CardDTO, error)
Create(ctx context.Context, dto CreateCardDTO) (CardDTO, error)
Update(ctx context.Context, id int64, dto UpdateCardDTO) (CardDTO, error)
Delete(ctx context.Context, id int64) error
}