2025-05-08 16:52:29 +08:00

43 lines
839 B
JavaScript

import request from '@/sheep/request';
const CategoryApi = {
// 查询分类列表
getCategoryList: () => {
return request({
url: '/product/category/list',
method: 'GET',
});
},
// 查询分类列表,指定编号
getCategoryListByIds: (ids) => {
return request({
url: '/product/category/list-by-ids',
method: 'GET',
params: { ids },
});
},
// 查询评论分类列表
getCommentLists: () => {
return request({
url: '/promotion/article-category/list',
method: 'GET',
});
},
// 查询评论详情
getCommentListByIds: (id) => {
return request({
url: '/promotion/article/getArtical?id='+id,
method: 'GET',
custom: {
showLoading: false,
showError: false,
},
});
},
};
export default CategoryApi;