👔 Created basic page use case interface

This commit is contained in:
Maxim Lebedev 2023-11-08 05:13:22 +06:00
parent fe19646f7e
commit 79d8fa66f6
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
1 changed files with 13 additions and 0 deletions

13
internal/page/usecase.go Normal file
View File

@ -0,0 +1,13 @@
package page
import (
"context"
"golang.org/x/text/language"
"source.toby3d.me/toby3d/home/internal/domain"
)
type UseCase interface {
Do(ctx context.Context, lang language.Tag, path string) (*domain.Page, error)
}