This repository has been archived on 2022-09-04. You can view files and clone it, but cannot push or open issues or pull requests.
api/village/repository.go
Kichiyaki fb84bdbc55 [WIP] - refactor limit, sort, offset
- update the Version/Village repository and usecase
2020-11-21 12:34:25 +01:00

22 lines
343 B
Go

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