From df2821ebe963f88718ebdd1e6f3a6aaa458211de Mon Sep 17 00:00:00 2001
From: pany <939630029@qq.com>
Date: Tue, 26 Nov 2024 11:29:20 +0800
Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=B0=83=E6=95=B4=20http=20?=
 =?UTF-8?q?=E6=A8=A1=E5=9D=97=E7=9B=AE=E5=BD=95=E7=BB=93=E6=9E=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/http/{ => apis}/composable-demo/use-fetch-select.ts       | 0
 src/http/{ => apis}/composable-demo/use-fullscreen-loading.ts | 0
 src/http/{ => apis}/login/index.ts                            | 2 +-
 src/http/{login/types/login.ts => apis/login/type.ts}         | 0
 src/http/{ => apis}/table/index.ts                            | 2 +-
 src/http/{table/types/table.ts => apis/table/type.ts}         | 0
 src/pages/composable-demo/use-fetch-select.vue                | 2 +-
 src/pages/composable-demo/use-fullscreen-loading.vue          | 2 +-
 src/pages/login/index.vue                                     | 4 ++--
 src/pages/table/element-plus/index.vue                        | 4 ++--
 src/pages/table/vxe-table/index.vue                           | 4 ++--
 src/pinia/stores/user.ts                                      | 4 ++--
 12 files changed, 12 insertions(+), 12 deletions(-)
 rename src/http/{ => apis}/composable-demo/use-fetch-select.ts (100%)
 rename src/http/{ => apis}/composable-demo/use-fullscreen-loading.ts (100%)
 rename src/http/{ => apis}/login/index.ts (92%)
 rename src/http/{login/types/login.ts => apis/login/type.ts} (100%)
 rename src/http/{ => apis}/table/index.ts (93%)
 rename src/http/{table/types/table.ts => apis/table/type.ts} (100%)

diff --git a/src/http/composable-demo/use-fetch-select.ts b/src/http/apis/composable-demo/use-fetch-select.ts
similarity index 100%
rename from src/http/composable-demo/use-fetch-select.ts
rename to src/http/apis/composable-demo/use-fetch-select.ts
diff --git a/src/http/composable-demo/use-fullscreen-loading.ts b/src/http/apis/composable-demo/use-fullscreen-loading.ts
similarity index 100%
rename from src/http/composable-demo/use-fullscreen-loading.ts
rename to src/http/apis/composable-demo/use-fullscreen-loading.ts
diff --git a/src/http/login/index.ts b/src/http/apis/login/index.ts
similarity index 92%
rename from src/http/login/index.ts
rename to src/http/apis/login/index.ts
index 86b83a6..f611296 100644
--- a/src/http/login/index.ts
+++ b/src/http/apis/login/index.ts
@@ -1,4 +1,4 @@
-import type * as Login from "./types/login"
+import type * as Login from "./type"
 import { request } from "@/http/request"
 
 /** 获取登录验证码 */
diff --git a/src/http/login/types/login.ts b/src/http/apis/login/type.ts
similarity index 100%
rename from src/http/login/types/login.ts
rename to src/http/apis/login/type.ts
diff --git a/src/http/table/index.ts b/src/http/apis/table/index.ts
similarity index 93%
rename from src/http/table/index.ts
rename to src/http/apis/table/index.ts
index b0d2ae2..ed7ffd3 100644
--- a/src/http/table/index.ts
+++ b/src/http/apis/table/index.ts
@@ -1,4 +1,4 @@
-import type * as Table from "./types/table"
+import type * as Table from "./type"
 import { request } from "@/http/request"
 
 /** 增 */
diff --git a/src/http/table/types/table.ts b/src/http/apis/table/type.ts
similarity index 100%
rename from src/http/table/types/table.ts
rename to src/http/apis/table/type.ts
diff --git a/src/pages/composable-demo/use-fetch-select.vue b/src/pages/composable-demo/use-fetch-select.vue
index f8ea626..8666940 100644
--- a/src/pages/composable-demo/use-fetch-select.vue
+++ b/src/pages/composable-demo/use-fetch-select.vue
@@ -1,6 +1,6 @@
 <script lang="ts" setup>
 import { useFetchSelect } from "@/composables/useFetchSelect"
-import { getSelectDataApi } from "@/http/composable-demo/use-fetch-select"
+import { getSelectDataApi } from "@/http/apis/composable-demo/use-fetch-select"
 
 const { loading, options, value } = useFetchSelect({
   api: getSelectDataApi
diff --git a/src/pages/composable-demo/use-fullscreen-loading.vue b/src/pages/composable-demo/use-fullscreen-loading.vue
index 65f8b78..7e16bc0 100644
--- a/src/pages/composable-demo/use-fullscreen-loading.vue
+++ b/src/pages/composable-demo/use-fullscreen-loading.vue
@@ -1,6 +1,6 @@
 <script lang="ts" setup>
 import { useFullscreenLoading } from "@/composables/useFullscreenLoading"
-import { getErrorApi, getSuccessApi } from "@/http/composable-demo/use-fullscreen-loading"
+import { getErrorApi, getSuccessApi } from "@/http/apis/composable-demo/use-fullscreen-loading"
 import { ElMessage } from "element-plus"
 
 const svg = `
diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue
index 33ce6cb..7ad224a 100644
--- a/src/pages/login/index.vue
+++ b/src/pages/login/index.vue
@@ -1,8 +1,8 @@
 <script lang="ts" setup>
-import type { LoginRequestData } from "@/http/login/types/login"
+import type { LoginRequestData } from "@/http/apis/login/type"
 import type { FormInstance, FormRules } from "element-plus"
 import ThemeSwitch from "@/components/ThemeSwitch/index.vue"
-import { getLoginCodeApi } from "@/http/login"
+import { getLoginCodeApi } from "@/http/apis/login"
 import { useUserStore } from "@/pinia/stores/user"
 import { Key, Loading, Lock, Picture, User } from "@element-plus/icons-vue"
 import { ElMessage } from "element-plus"
diff --git a/src/pages/table/element-plus/index.vue b/src/pages/table/element-plus/index.vue
index de53c80..cd942fa 100644
--- a/src/pages/table/element-plus/index.vue
+++ b/src/pages/table/element-plus/index.vue
@@ -1,8 +1,8 @@
 <script lang="ts" setup>
-import type { CreateOrUpdateTableRequestData, TableData } from "@/http/table/types/table"
+import type { CreateOrUpdateTableRequestData, TableData } from "@/http/apis/table/type"
 import type { FormInstance, FormRules } from "element-plus"
 import { usePagination } from "@/composables/usePagination"
-import { createTableDataApi, deleteTableDataApi, getTableDataApi, updateTableDataApi } from "@/http/table"
+import { createTableDataApi, deleteTableDataApi, getTableDataApi, updateTableDataApi } from "@/http/apis/table"
 import { CirclePlus, Delete, Download, Refresh, RefreshRight, Search } from "@element-plus/icons-vue"
 import { ElMessage, ElMessageBox } from "element-plus"
 import { cloneDeep } from "lodash-es"
diff --git a/src/pages/table/vxe-table/index.vue b/src/pages/table/vxe-table/index.vue
index 0efde33..bf5bc4f 100644
--- a/src/pages/table/vxe-table/index.vue
+++ b/src/pages/table/vxe-table/index.vue
@@ -1,8 +1,8 @@
 <script lang="ts" setup>
-import type { TableResponseData } from "@/http/table/types/table"
+import type { TableResponseData } from "@/http/apis/table/type"
 import type { ElMessageBoxOptions } from "element-plus"
 import type { VxeFormInstance, VxeFormProps, VxeGridInstance, VxeGridProps, VxeModalInstance, VxeModalProps } from "vxe-table"
-import { deleteTableDataApi, getTableDataApi } from "@/http/table"
+import { deleteTableDataApi, getTableDataApi } from "@/http/apis/table"
 import { ElMessage, ElMessageBox } from "element-plus"
 import { nextTick, reactive, ref } from "vue"
 import { RoleColumnSolts } from "./tsx/RoleColumnSolts"
diff --git a/src/pinia/stores/user.ts b/src/pinia/stores/user.ts
index a30a278..ea9aa28 100644
--- a/src/pinia/stores/user.ts
+++ b/src/pinia/stores/user.ts
@@ -1,6 +1,6 @@
-import type { LoginRequestData } from "@/http/login/types/login"
+import type { LoginRequestData } from "@/http/apis/login/type"
 import { routeSettings } from "@/config/route"
-import { getUserInfoApi, loginApi } from "@/http/login"
+import { getUserInfoApi, loginApi } from "@/http/apis/login"
 import { pinia } from "@/pinia"
 import { resetRouter } from "@/router"
 import { getToken, removeToken, setToken } from "@/utils/cache/cookies"