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/version/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
270 B
Go

package version
import (
"context"
"github.com/tribalwarshelp/shared/models"
)
type Usecase interface {
Fetch(ctx context.Context, cfg FetchConfig) ([]*models.Version, int, error)
GetByCode(ctx context.Context, code models.VersionCode) (*models.Version, error)
}