import { DaffCategoryServiceInterface } from '@daffodil/category/driver'
An interface for category service drivers.
interface DaffCategoryServiceInterface<V extends DaffGenericCategory<V> = DaffCategory, W extends DaffProduct = DaffProduct> {
get(categoryRequest: DaffCategoryIdRequest): any
getByUrl(categoryRequest: DaffCategoryUrlRequest): any
}
anyFetch a category by its ID.
| Parameter | categoryRequest: DaffCategoryIdRequest |
|---|---|
| Description |
anyFetch a category by its associated URL.
| Parameter | categoryRequest: DaffCategoryUrlRequest |
|---|---|
| Description |