15 lines
432 B
Go
15 lines
432 B
Go
package storage
|
|
|
|
import (
|
|
crm "cake_crm/proto"
|
|
"context"
|
|
)
|
|
|
|
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)
|
|
GetPositionsByText(ctx context.Context, text string) ([]*crm.Product, error)
|
|
}
|