Implement service layer #3

Merged
krendelhoff merged 5 commits from phase-3-service-layer into master 2025-08-22 16:40:01 +03:00
2 changed files with 6 additions and 12 deletions
Showing only changes of commit c14532bd1f - Show all commits

6
internal/quotes/quote.go Normal file
View file

@ -0,0 +1,6 @@
package quotes
type Quote struct {
Text string `json:"text"`
Author string `json:"author"`
}

View file

@ -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)
}