first commit
This commit is contained in:
8
back/internal/domain/repositories/coffee_repository.go
Normal file
8
back/internal/domain/repositories/coffee_repository.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package repositories
|
||||
|
||||
import "awesome-back/internal/domain/entities"
|
||||
|
||||
type CoffeeRepository interface {
|
||||
FindAll() ([]entities.Coffee, error)
|
||||
FindByID(id int) (*entities.Coffee, error)
|
||||
}
|
||||
9
back/internal/domain/repositories/order_repository.go
Normal file
9
back/internal/domain/repositories/order_repository.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package repositories
|
||||
|
||||
import "awesome-back/internal/domain/entities"
|
||||
|
||||
type OrderRepository interface {
|
||||
FindAll() ([]entities.Order, error)
|
||||
FindByID(id int) (*entities.Order, error)
|
||||
Save(order *entities.Order) error
|
||||
}
|
||||
9
back/internal/domain/repositories/pastry_repository.go
Normal file
9
back/internal/domain/repositories/pastry_repository.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package repositories
|
||||
|
||||
import "awesome-back/internal/domain/entities"
|
||||
|
||||
type PastryRepository interface {
|
||||
FindAll() ([]entities.Pastry, error)
|
||||
FindByID(id int) (*entities.Pastry, error)
|
||||
FindByCategory(category string) ([]entities.Pastry, error)
|
||||
}
|
||||
Reference in New Issue
Block a user