19 lines
299 B
Go
19 lines
299 B
Go
package village
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/tribalwarshelp/shared/models"
|
|
)
|
|
|
|
type FetchConfig struct {
|
|
Server string
|
|
Filter *models.VillageFilter
|
|
Columns []string
|
|
Count bool
|
|
}
|
|
|
|
type Repository interface {
|
|
Fetch(ctx context.Context, cfg FetchConfig) ([]*models.Village, int, error)
|
|
}
|