2024-08-07 10:31:42 +08:00
|
|
|
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 },
|
|
|
|
});
|
|
|
|
},
|
2025-05-08 16:52:29 +08:00
|
|
|
|
|
|
|
// 查询评论分类列表
|
|
|
|
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,
|
|
|
|
},
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
2024-08-07 10:31:42 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
export default CategoryApi;
|