category.js 433 B

123456789101112131415161718192021
  1. import request from '@/sheep/request';
  2. const CategoryApi = {
  3. // 查询分类列表
  4. getCategoryList: () => {
  5. return request({
  6. url: '/product/category/list',
  7. method: 'GET',
  8. });
  9. },
  10. // 查询分类列表,指定编号
  11. getCategoryListByIds: (ids) => {
  12. return request({
  13. url: '/product/category/list-by-ids',
  14. method: 'GET',
  15. params: { ids },
  16. });
  17. },
  18. };
  19. export default CategoryApi;