12 lines
428 B
Go
12 lines
428 B
Go
package cardpinorders
|
|
|
|
import "context"
|
|
|
|
type Repository interface {
|
|
List(ctx context.Context, filter ListFilter) (ListCardPinOrderDTO, error)
|
|
GetByID(ctx context.Context, id int64) (CardPinOrderDTO, error)
|
|
Create(ctx context.Context, dto CreateCardPinOrderDTO) (CardPinOrderDTO, error)
|
|
Update(ctx context.Context, id int64, dto UpdateCardPinOrderDTO) (CardPinOrderDTO, error)
|
|
Delete(ctx context.Context, id int64) error
|
|
}
|