This commit is contained in:
2024-05-13 04:07:25 +07:00
commit 00f28e3f7b
6 changed files with 191 additions and 0 deletions
@@ -0,0 +1,31 @@
package storage_file
import (
"cake_crm/internal/models/storage"
"context"
)
type storageFile struct {
filepath string
}
func NewStorageFile(filepath string) storage.IStorage {
return &storageFile{
filepath: filepath,
}
}
func (s *storageFile) GetAllProducts(ctx context.Context) ([]storage.Product, error) {
//TODO implement me
panic("implement me")
}
func (s *storageFile) GetProductByID(ctx context.Context, id int) (storage.Product, error) {
//TODO implement me
panic("implement me")
}
func (s *storageFile) GetBreadcrumbs(ctx context.Context, id int) ([]storage.Breadcrumb, error) {
//TODO implement me
panic("implement me")
}