cake_crm/internal/modules/storage/interface.go

15 lines
432 B
Go
Raw Normal View History

2024-05-12 21:07:25 +00:00
package storage
2024-05-18 05:12:00 +00:00
import (
crm "cake_crm/proto"
"context"
)
2024-05-12 21:07:25 +00:00
type IStorage interface {
2024-05-18 05:36:31 +00:00
GetCatalog(ctx context.Context) ([]*crm.Category, error)
GetPositions(ctx context.Context, id int64) ([]*crm.Product, error)
2024-05-18 05:58:50 +00:00
GetProduct(ctx context.Context, id int64) (*crm.Product, error)
2024-05-18 06:16:57 +00:00
GetBreadcrumbs(ctx context.Context, id int64) ([]*crm.Category, error)
2024-05-29 21:17:13 +00:00
GetPositionsByText(ctx context.Context, text string) ([]*crm.Product, error)
2024-05-12 21:07:25 +00:00
}