Rename quote module
This commit is contained in:
parent
7864fafbd8
commit
c14532bd1f
6
internal/quotes/quote.go
Normal file
6
internal/quotes/quote.go
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
package quotes
|
||||
|
||||
type Quote struct {
|
||||
Text string `json:"text"`
|
||||
Author string `json:"author"`
|
||||
}
|
||||
|
|
@ -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)
|
||||
}
|
||||
Loading…
Reference in a new issue