1
from core.helpers.cache import CacheStrategy
2
from .models import Product, ProductCategory
3
from .schemas.product_category_schemas import ProductCategoryCreateScheme, ProductCategoryUpdateScheme, \
4
ProductCategoryFilter, ProductCategoryScheme
5
from .schemas.product_schemas import ProductCreateScheme, ProductUpdateScheme, ProductFilter, ProductScheme
6
from .services import ProductService, ProductCategoryService
10
'service': ProductService,
12
'cache_strategy': CacheStrategy.FULL,
14
'create': ProductCreateScheme,
15
'update': ProductUpdateScheme,
16
'filter': ProductFilter,
21
'service': ProductCategoryService,
22
'model': ProductCategory,
23
'cache_strategy': CacheStrategy.FULL,
25
'create': ProductCategoryCreateScheme,
26
'update': ProductCategoryUpdateScheme,
27
'filter': ProductCategoryFilter,
28
'get': ProductCategoryScheme