12 lines
322 B
Go
12 lines
322 B
Go
package repositories
|
|
|
|
import (
|
|
"context"
|
|
"maot-shortner/internal/domain"
|
|
)
|
|
|
|
type LinkRepository interface {
|
|
GetLinks(ctx context.Context) ([]*domain.Link, error)
|
|
CreateLink(ctx context.Context, link *domain.Link) (*domain.Link, error)
|
|
GetLinkByShortCode(ctx context.Context, shortCode string) (*domain.Link, error)
|
|
}
|