17 lines
308 B
Go
17 lines
308 B
Go
package widget
|
|
|
|
import (
|
|
"context"
|
|
"donat-widget/infrastructure/pg"
|
|
)
|
|
|
|
type Deleter interface {
|
|
Delete(ctx context.Context) (int, error)
|
|
}
|
|
|
|
func DeleteWidget(pool *pg.Postgres) func(ctx context.Context, repository Deleter) int {
|
|
return func(ctx context.Context, repository Deleter) int {
|
|
return 8
|
|
}
|
|
}
|