2023-12-10 14:12:33 +00:00
|
|
|
import request from '@/sheep/request';
|
|
|
|
|
|
|
|
const CategoryApi = {
|
2023-12-16 10:32:07 +00:00
|
|
|
// 查询分类列表
|
|
|
|
getCategoryList: () => {
|
|
|
|
return request({
|
2024-01-20 05:13:28 +00:00
|
|
|
url: '/product/category/list',
|
2023-12-16 10:32:07 +00:00
|
|
|
method: 'GET',
|
|
|
|
});
|
|
|
|
},
|
|
|
|
// 查询分类列表,指定编号
|
|
|
|
getCategoryListByIds: (ids) => {
|
|
|
|
return request({
|
2024-01-20 05:13:28 +00:00
|
|
|
url: '/product/category/list-by-ids',
|
2023-12-16 10:32:07 +00:00
|
|
|
method: 'GET',
|
|
|
|
params: { ids },
|
|
|
|
});
|
|
|
|
},
|
2023-12-10 14:12:33 +00:00
|
|
|
};
|
2023-12-16 10:32:07 +00:00
|
|
|
|
2023-12-10 14:12:33 +00:00
|
|
|
export default CategoryApi;
|