Browse Source

feat(api): 修改api文件

tangning 3 năm trước cách đây
mục cha
commit
bf19cb41f8

+ 2 - 2
.env.uat

@@ -7,8 +7,8 @@ VITE_PUBLIC_PATH = /
 # Delete console
 VITE_DROP_CONSOLE = true
 
-VITE_PROXY = [["/basic-api","https://cszfb.4dkankan.com/basic-api"],["/upload","http://localhost:3300/upload"],["/zfb-api","https://cszfb.4dkankan.com"]]
-# Whether to enable gzip or brotli compression
+VITE_PROXY = [["/upload","http://localhost:3300/upload"],["/zfb-api","https://cszfb.4dkankan.com"]]
+# Whether to enable gzip or brotli compression ["/basic-api","https://cszfb.4dkankan.com/basic-api"],
 # Optional: gzip | brotli | none
 # If you need multiple forms, you can use `,` to separate
 VITE_BUILD_COMPRESS = 'none'

+ 1 - 1
mock/company/selectCompanyByType.ts

@@ -50,7 +50,7 @@ const demoList = (() => {
 
 export default [
   {
-    url: '/basic-api/zfb/company/selectCompanyByType',
+    url: '/zfb-api/zfb/company/selectCompanyByType',
     timeout: 1000,
     method: 'get',
     response: ({ query }) => {

+ 1 - 1
mock/company/selectCompanyNum.ts

@@ -66,7 +66,7 @@ const demoList = (() => {
 
 export default [
   {
-    url: '/basic-api/mock/zfb/company/selectCompanyNum',
+    url: '/zfb-api/mock/zfb/company/selectCompanyNum',
     timeout: 1000,
     method: 'post',
     response: ({ query }) => {

+ 3 - 3
mock/demo/account.ts

@@ -45,7 +45,7 @@ const userInfo = {
 
 export default [
   {
-    url: '/basic-api/account/getAccountInfo',
+    url: '/zfb-api/account/getAccountInfo',
     timeout: 1000,
     method: 'get',
     response: () => {
@@ -53,7 +53,7 @@ export default [
     },
   },
   {
-    url: '/basic-api/user/sessionTimeout',
+    url: '/zfb-api/user/sessionTimeout',
     method: 'post',
     statusCode: 401,
     response: () => {
@@ -61,7 +61,7 @@ export default [
     },
   },
   {
-    url: '/basic-api/user/tokenExpired',
+    url: '/zfb-api/user/tokenExpired',
     method: 'post',
     statusCode: 200,
     response: () => {

+ 7 - 7
mock/demo/system.ts

@@ -136,7 +136,7 @@ const menuList = (() => {
 
 export default [
   {
-    url: '/basic-api/system/getAccountList',
+    url: '/zfb-api/system/getAccountList',
     timeout: 100,
     method: 'get',
     response: ({ query }) => {
@@ -145,7 +145,7 @@ export default [
     },
   },
   {
-    url: '/basic-api/system/getRoleListByPage',
+    url: '/zfb-api/system/getRoleListByPage',
     timeout: 100,
     method: 'get',
     response: ({ query }) => {
@@ -154,7 +154,7 @@ export default [
     },
   },
   {
-    url: '/basic-api/system/setRoleStatus',
+    url: '/zfb-api/system/setRoleStatus',
     timeout: 500,
     method: 'post',
     response: ({ query }) => {
@@ -163,7 +163,7 @@ export default [
     },
   },
   {
-    url: '/basic-api/system/getAllRoleList',
+    url: '/zfb-api/system/getAllRoleList',
     timeout: 100,
     method: 'get',
     response: () => {
@@ -171,7 +171,7 @@ export default [
     },
   },
   {
-    url: '/basic-api/system/getDeptList',
+    url: '/zfb-api/system/getDeptList',
     timeout: 100,
     method: 'get',
     response: () => {
@@ -179,7 +179,7 @@ export default [
     },
   },
   {
-    url: '/basic-api/system/getMenuList',
+    url: '/zfb-api/system/getMenuList',
     timeout: 100,
     method: 'get',
     response: () => {
@@ -187,7 +187,7 @@ export default [
     },
   },
   {
-    url: '/basic-api/system/accountExist',
+    url: '/zfb-api/system/accountExist',
     timeout: 500,
     method: 'post',
     response: ({ body }) => {

+ 1 - 1
mock/devices/pageList.ts

@@ -70,7 +70,7 @@ const demoList = (() => {
 
 export default [
   {
-    url: '/basic-api/zfb/camera/pageList',
+    url: '/zfb-api/zfb/camera/pageList',
     timeout: 1000,
     method: 'get',
     response: ({ query }) => {

+ 1 - 1
mock/feedback/list.ts

@@ -32,7 +32,7 @@ const demoList = (() => {
 
 export default [
   {
-    url: '/basic-api/zfb/feedback/list',
+    url: '/zfb-api/zfb/feedback/list',
     timeout: 1000,
     method: 'get',
     response: ({ query }) => {

+ 1 - 1
mock/house/selectHouseByType.ts

@@ -74,7 +74,7 @@ const demoList = (() => {
 
 export default [
   {
-    url: '/basic-api/zfb/house/selectHouseByType',
+    url: '/zfb-api/zfb/house/selectHouseByType',
     timeout: 1000,
     method: 'get',
     response: ({ query }) => {

+ 1 - 1
mock/member/list.ts

@@ -39,7 +39,7 @@ const demoList = (() => {
 
 export default [
   {
-    url: '/basic-api/zfb/member/list',
+    url: '/zfb-api/zfb/member/list',
     timeout: 1000,
     method: 'get',
     response: ({ query }) => {

+ 1 - 1
mock/order/list.ts

@@ -60,7 +60,7 @@ const demoList = (() => {
 
 export default [
   {
-    url: '/basic-api/zfb/order/list',
+    url: '/zfb-api/zfb/order/list',
     timeout: 1000,
     method: 'get',
     response: ({ query }) => {

+ 1 - 1
mock/product/category.ts

@@ -62,7 +62,7 @@ const categoryList = (() => {
 
 export default [
   {
-    url: '/basic-api/zfb/product/category',
+    url: '/zfb-api/zfb/product/category',
     timeout: 1000,
     method: 'get',
     response: ({ query }) => {

+ 1 - 1
mock/product/list.ts

@@ -40,7 +40,7 @@ const demoList = (() => {
 
 export default [
   {
-    url: '/basic-api/zfb/product/list',
+    url: '/zfb-api/zfb/product/list',
     timeout: 1000,
     method: 'get',
     response: ({ query }) => {

+ 1 - 1
mock/scene/list.ts

@@ -27,7 +27,7 @@ const demoList = (() => {
 
 export default [
   {
-    url: '/basic-api/zfb/scene/list',
+    url: '/zfb-api/zfb/scene/list',
     timeout: 1000,
     method: 'get',
     response: ({ query }) => {

+ 1 - 1
mock/scene/live.ts

@@ -33,7 +33,7 @@ const demoList = (() => {
 
 export default [
   {
-    url: '/basic-api/zfb/scene/live',
+    url: '/zfb-api/zfb/scene/live',
     timeout: 1000,
     method: 'get',
     response: ({ query }) => {

+ 1 - 1
mock/staff/list.ts

@@ -32,7 +32,7 @@ const demoList = (() => {
 
 export default [
   {
-    url: '/basic-api/zfb/staff/list',
+    url: '/zfb-api/zfb/staff/list',
     timeout: 1000,
     method: 'get',
     response: ({ query }) => {

+ 1 - 1
mock/sys/menu.ts

@@ -237,7 +237,7 @@ const linkRoute = {
 
 export default [
   {
-    url: '/basic-api/getMenuList',
+    url: '/zfb-api/getMenuList',
     timeout: 1000,
     method: 'get',
     response: (request: requestParams) => {

+ 4 - 4
mock/sys/user.ts

@@ -82,7 +82,7 @@ const fakeCodeList: any = {
 export default [
   // mock user login
   {
-    url: '/basic-api/mock/login',
+    url: '/zfb-api/mock/login',
     timeout: 200,
     method: 'post',
     response: ({ body }) => {
@@ -105,7 +105,7 @@ export default [
     },
   },
   {
-    url: '/basic-api/getUserInfo',
+    url: '/zfb-api/getUserInfo',
     method: 'get',
     response: (request: requestParams) => {
       const token = getRequestToken(request);
@@ -118,7 +118,7 @@ export default [
     },
   },
   {
-    url: '/basic-api/getPermCode',
+    url: '/zfb-api/getPermCode',
     timeout: 200,
     method: 'get',
     response: (request: requestParams) => {
@@ -134,7 +134,7 @@ export default [
     },
   },
   {
-    url: '/basic-api/logout',
+    url: '/zfb-api/logout',
     timeout: 200,
     method: 'get',
     response: (request: requestParams) => {

+ 3 - 3
src/api/account/index.ts

@@ -2,9 +2,9 @@ import { defHttp } from '/@/utils/http/axios';
 import { GetAccountInfoModel } from './model';
 
 enum Api {
-  ACCOUNT_INFO = '/basic-api/account/getAccountInfo',
-  SESSION_TIMEOUT = '/basic-api/user/sessionTimeout',
-  TOKEN_EXPIRED = '/basic-api/user/tokenExpired',
+  ACCOUNT_INFO = '/zfb-api/account/getAccountInfo',
+  SESSION_TIMEOUT = '/zfb-api/user/sessionTimeout',
+  TOKEN_EXPIRED = '/zfb-api/user/tokenExpired',
 }
 
 // Get personal center-basic settings

+ 1 - 1
src/api/feedback/list.ts

@@ -2,7 +2,7 @@ import { defHttp } from '/@/utils/http/axios';
 import { PageParams, RentListGetResultModel } from './model';
 
 enum Api {
-  pageList = '/basic-api/feedback/list',
+  pageList = '/zfb-api/feedback/list',
 }
 
 /**

+ 1 - 1
src/api/member/list.ts

@@ -2,7 +2,7 @@ import { defHttp } from '/@/utils/http/axios';
 import { PageParams, MemberListGetResultModel } from './model';
 
 enum Api {
-  pageList = '/basic-api/user/list',
+  pageList = '/zfb-api/user/list',
 }
 
 /**

+ 7 - 7
src/api/order/list.ts

@@ -9,13 +9,13 @@ import {
 import type { Result } from '/#/axios';
 
 enum Api {
-  pageList = '/basic-api/order/list',
-  getOrderInfo = '/basic-api/order/info',
-  prderConfirm = '/basic-api/order/confirm',
-  shippingList = '/basic-api/shipping/list',
-  brandList = '/basic-api/brand/queryAll',
-  sendGoods = '/basic-api/order/sendGoods',
-  exportExcel = '/basic-api/order/export',
+  pageList = '/zfb-api/order/list',
+  getOrderInfo = '/zfb-api/order/info',
+  prderConfirm = '/zfb-api/order/confirm',
+  shippingList = '/zfb-api/shipping/list',
+  brandList = '/zfb-api/brand/queryAll',
+  sendGoods = '/zfb-api/order/sendGoods',
+  exportExcel = '/zfb-api/order/export',
 }
 
 /**

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

@@ -3,15 +3,15 @@ import { PageParams, updateItem, RentListGetResultModel, addCategoryParams } fro
 import { Result, UploadFileParams } from '/#/axios';
 
 enum Api {
-  category = '/basic-api/category/queryAll',
-  attribute = '/basic-api/specification/list',
-  delete = '/basic-api/specification/delete',
-  update = '/basic-api/specification/update',
-  save = '/basic-api/specification/save',
-  uploadBanner = '/basic-api/sys/oss/upload',
-  addCategory = '/basic-api/category/save',
-  updateCategory = '/basic-api/category/update',
-  deleteCategory = '/basic-api/category/delete',
+  category = '/zfb-api/category/queryAll',
+  attribute = '/zfb-api/specification/list',
+  delete = '/zfb-api/specification/delete',
+  update = '/zfb-api/specification/update',
+  save = '/zfb-api/specification/save',
+  uploadBanner = '/zfb-api/sys/oss/upload',
+  addCategory = '/zfb-api/category/save',
+  updateCategory = '/zfb-api/category/update',
+  deleteCategory = '/zfb-api/category/delete',
 }
 
 /**

+ 9 - 9
src/api/product/list.ts

@@ -3,15 +3,15 @@ import { PageParams, RentListGetResultModel } from './model';
 import { Result } from '/#/axios';
 
 enum Api {
-  pageList = '/basic-api/goods/list',
-  ref = '/basic-api/specification/list',
-  unSale = '/basic-api/goods/unSale',
-  enSale = '/basic-api/goods/enSale',
-  delete = '/basic-api/goods/delete',
-  info = '/basic-api/goods/info/',
-  update = '/basic-api/goods/update',
-  save = '/basic-api/goods/save',
-  queryAll = '/basic-api/specification/queryAll',
+  pageList = '/zfb-api/goods/list',
+  ref = '/zfb-api/specification/list',
+  unSale = '/zfb-api/goods/unSale',
+  enSale = '/zfb-api/goods/enSale',
+  delete = '/zfb-api/goods/delete',
+  info = '/zfb-api/goods/info/',
+  update = '/zfb-api/goods/update',
+  save = '/zfb-api/goods/save',
+  queryAll = '/zfb-api/specification/queryAll',
 }
 
 /**

+ 1 - 1
src/api/scene/list.ts

@@ -15,7 +15,7 @@ enum Api {
   downloadSceneData = '/zfb-api/zfb/scene/downloadSceneData',
   getDownloadProcess = '/zfb-api/zfb/scene/getDownloadProcess',
   update = '/zfb-api/zfb/scene/update',
-  generateDefaultLiveRoom = '/basic-api/scene/generateDefaultLiveRoom',
+  generateDefaultLiveRoom = '/zfb-api/scene/generateDefaultLiveRoom',
 }
 
 /**

+ 10 - 10
src/api/scene/live.ts

@@ -10,20 +10,20 @@ import {
 } from './model';
 import { Result, UploadFileParams } from '/#/axios';
 enum Api {
-  pageList = '/basic-api/brand/brandBindList',
+  pageList = '/zfb-api/brand/brandBindList',
   bindAnchorList = '/zfb-api/zfb/shop/sys/user/bindList',
-  olderBindAnchorList = '/basic-api/sys/user/bindList',
+  olderBindAnchorList = '/zfb-api/sys/user/bindList',
   // brandTypeList = '/zfb-api/zfb/shop/brand/brandTypeList',
-  brandTypeList = '/basic-api/brand/brandTypeList',
+  brandTypeList = '/zfb-api/brand/brandTypeList',
   // bindUser = '/zfb-api/zfb/shop/sys/brand/bindUser',
-  bindUser = '/basic-api/brand/bindUser',
-  brandUpdate = '/basic-api/brand/update',
-  brandDelete = '/basic-api/brand/delete',
-  upload = '/basic-api/sys/oss/upload',
-  uploadVideo = '/basic-api/sys/oss/upLoadVideo',
+  bindUser = '/zfb-api/brand/bindUser',
+  brandUpdate = '/zfb-api/brand/update',
+  brandDelete = '/zfb-api/brand/delete',
+  upload = '/zfb-api/sys/oss/upload',
+  uploadVideo = '/zfb-api/sys/oss/upLoadVideo',
   getAllScene = '/zfb-api/zfb/scene/list',
-  getBrandInfo = '/basic-api/brand/info',
-  addSave = '/basic-api/brand/save',
+  getBrandInfo = '/zfb-api/brand/info',
+  addSave = '/zfb-api/brand/save',
 }
 export type SceneLiveItemResult = SceneLiveItem;
 /**

+ 1 - 1
src/api/sys/user.ts

@@ -12,7 +12,7 @@ import { ContentTypeEnum } from '/@/enums/httpEnum';
 // import { encode } from 'js-base64';
 
 enum Api {
-  // Login = '/basic-api/sys/login',
+  // Login = '/zfb-api/sys/login',
   Login = '/zfb-api/zfb/loginBackground',
   Logout = '/logout',
   updatePassword = '/zfb-api/zfb/user/updatePassword',

+ 3 - 3
src/api/system/system.ts

@@ -30,15 +30,15 @@ enum Api {
   AccountList = '/zfb-api/zfb/shop/sys/user/list',
   saveAccount = '/zfb-api/zfb/shop/sys/user/save',
   updateAccount = '/zfb-api/zfb/shop/sys/user/update',
-  IsAccountExist = '/basic-api/system/accountExist',
+  IsAccountExist = '/zfb-api/system/accountExist',
   deleteAccountUser = '/zfb-api/zfb/shop/sys/user/preDeleteStaff',
 
   RolePageList = '/zfb-api/zfb/shop/sys/role/list',
-  setRoleStatus = '/basic-api/system/setRoleStatus',
+  setRoleStatus = '/zfb-api/system/setRoleStatus',
   saveRole = '/zfb-api/zfb/shop/sys/role/save',
   deleteRole = '/zfb-api/zfb/shop/sys/role/delete',
   updateRole = '/zfb-api/zfb/shop/sys/role/update',
-  GetAllRoleList = '/basic-api/system/getAllRoleList',
+  GetAllRoleList = '/zfb-api/system/getAllRoleList',
   roleSelectList = '/zfb-api/zfb/shop/sys/role/select',
 
   DeptList = '/zfb-api/zfb/shop/sys/dept/list',