category.js 445 B

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