diff --git a/internal/quotes/quote.go b/internal/quotes/quote.go new file mode 100644 index 0000000..06746c2 --- /dev/null +++ b/internal/quotes/quote.go @@ -0,0 +1,6 @@ +package quotes + +type Quote struct { + Text string `json:"text"` + Author string `json:"author"` +} diff --git a/internal/quotes/types.go b/internal/quotes/types.go deleted file mode 100644 index f7ae234..0000000 --- a/internal/quotes/types.go +++ /dev/null @@ -1,12 +0,0 @@ -package quotes - -import "context" - -type Quote struct { - Text string `json:"text"` - Author string `json:"author"` -} - -type Service interface { - GetRandomQuote(ctx context.Context) (*Quote, error) -}