浏览代码

feat(api): 旧系统 product api

gemercheung 3 年之前
父节点
当前提交
a56c69c373
共有 2 个文件被更改,包括 2 次插入3 次删除
  1. 2 2
      src/api/product/category.ts
  2. 0 1
      src/api/product/list.ts

+ 2 - 2
src/api/product/category.ts

@@ -2,7 +2,7 @@ import { defHttp } from '/@/utils/http/axios';
 import { PageParams, RentListGetResultModel } from './model';
 
 enum Api {
-  category = '/zfb/product/category',
+  category = '/basic-api/category/queryAll',
 }
 
 /**
@@ -10,7 +10,7 @@ enum Api {
  */
 
 export const categoryApi = (params: PageParams) =>
-  defHttp.get<RentListGetResultModel>({
+  defHttp.post<RentListGetResultModel>({
     url: Api.category,
     params,
     headers: {

+ 0 - 1
src/api/product/list.ts

@@ -3,7 +3,6 @@ import { PageParams, RentListGetResultModel } from './model';
 
 enum Api {
   pageList = '/basic-api/brand/brandBindList',
-  category = '/basic-api/category/queryAll',
   ref = '/basic-api/specification/list',
 }