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/usecase.go
Kichiyaki fb84bdbc55 [WIP] - refactor limit, sort, offset
- update the Version/Village repository and usecase
2020-11-21 12:34:25 +01:00

13 lines
266 B
Go

package village
import (
"context"
"github.com/tribalwarshelp/shared/models"
)
type Usecase interface {
Fetch(ctx context.Context, cfg FetchConfig) ([]*models.Village, int, error)
GetByID(ctx context.Context, server string, id int) (*models.Village, error)
}