productCategory.ts 376 B

123456789101112131415161718
  1. import request from '@/utils/request';
  2. // 查询产品分类列表
  3. export function listProductCategory(query: any) {
  4. return request({
  5. url: '/product/category/list',
  6. method: 'get',
  7. params: query
  8. });
  9. }
  10. // 查询产品分类详情
  11. export function getProductCategory(id: number) {
  12. return request({
  13. url: '/product/category/' + id,
  14. method: 'get'
  15. });
  16. }