Преглед на файлове

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',
 }