13 lines
283 B
Go
13 lines
283 B
Go
|
package version
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"github.com/tribalwarshelp/shared/models"
|
||
|
)
|
||
|
|
||
|
type Usecase interface {
|
||
|
Fetch(ctx context.Context, filter *models.VersionFilter) ([]*models.Version, int, error)
|
||
|
GetByCode(ctx context.Context, code models.VersionCode) (*models.Version, error)
|
||
|
}
|