add breadcrumbs

This commit is contained in:
2024-05-18 13:16:57 +07:00
parent 6b3306bb96
commit db4419dc81
9 changed files with 421 additions and 59 deletions
+1 -11
View File
@@ -5,19 +5,9 @@ import (
"context"
)
type Product struct {
ID int `json:"id"`
Name string `json:"name"`
// todo
}
type Breadcrumb struct {
Name string `json:"name"`
URL string `json:"url"`
}
type IStorage interface {
GetCatalog(ctx context.Context) ([]*crm.Category, error)
GetPositions(ctx context.Context, id int64) ([]*crm.Product, error)
GetProduct(ctx context.Context, id int64) (*crm.Product, error)
GetBreadcrumbs(ctx context.Context, id int64) ([]*crm.Category, error)
}