mirror of
https://github.com/serty2005/rmser.git
synced 2026-02-04 19:02:33 -06:00
21 lines
389 B
Go
21 lines
389 B
Go
package domain
|
|
|
|
import (
|
|
"rmser/internal/domain/catalog"
|
|
"rmser/internal/domain/invoices"
|
|
"rmser/internal/domain/recipes"
|
|
"time"
|
|
)
|
|
|
|
type Repository interface {
|
|
// Catalog
|
|
SaveProducts(products []catalog.Product) error
|
|
|
|
// Recipes
|
|
SaveRecipes(recipes []recipes.Recipe) error
|
|
|
|
// Invoices
|
|
GetLastInvoiceDate() (*time.Time, error)
|
|
SaveInvoices(invoices []invoices.Invoice) error
|
|
}
|