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

12 lines
271 B
Go
Raw Normal View History

2020-06-02 15:45:21 +00:00
package village
import (
"context"
"github.com/tribalwarshelp/shared/tw/twmodel"
2020-06-02 15:45:21 +00:00
)
type Usecase interface {
Fetch(ctx context.Context, cfg FetchConfig) ([]*twmodel.Village, int, error)
GetByID(ctx context.Context, server string, id int) (*twmodel.Village, error)
2020-06-02 15:45:21 +00:00
}