feat(links): create basic link shortening algo
This commit is contained in:
parent
fc46164556
commit
81e72cedfa
9 changed files with 144 additions and 23 deletions
|
|
@ -7,4 +7,6 @@ import (
|
|||
|
||||
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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue