20 lines
615 B
TypeScript
20 lines
615 B
TypeScript
import createAxios from '@/utils/request';
|
|
import type IProductCategory from '@/domain/iProductCategory.ts';
|
|
import type { IProductCategoryTree } from '@/domain/iProductCategory.ts';
|
|
|
|
/** 分类级联树(商品表单分类下拉、对账筛选用,仅启用分类) */
|
|
export async function getCategoryTree() {
|
|
return createAxios<IProductCategoryTree[]>({
|
|
url: '/product/category/tree',
|
|
method: 'get',
|
|
});
|
|
}
|
|
|
|
/** 完整分类树(后台树表展示) */
|
|
export async function getCategoryTable() {
|
|
return createAxios<IProductCategory[]>({
|
|
url: '/product/category',
|
|
method: 'get',
|
|
});
|
|
}
|