GitHub

DaffCategoryServiceInterface

Type

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
}

() Methods

get
any

Fetch a category by its ID.

Parameters
ParametercategoryRequest: DaffCategoryIdRequest
Description
getByUrl
any

Fetch a category by its associated URL.

Parameters
ParametercategoryRequest: DaffCategoryUrlRequest
Description