From 309b5a2eb4a99f20b2dcceca41c7ed1275bcc6ae Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期二, 22 七月 2025 17:26:08 +0800
Subject: [PATCH] '注册导航上传loading'

---
 src/api/upload/index.ts |   33 +++++++++------------------------
 1 files changed, 9 insertions(+), 24 deletions(-)

diff --git a/src/api/upload/index.ts b/src/api/upload/index.ts
index 8fb1139..de0fae2 100644
--- a/src/api/upload/index.ts
+++ b/src/api/upload/index.ts
@@ -2,37 +2,22 @@
  * 锛堜笉寤鸿鍐欐垚 request.post(xxx)锛屽洜涓鸿繖鏍� post 鏃讹紝鏃犳硶 params 涓� data 鍚屾椂浼犲弬锛�
  *
  * 涓婁紶api鎺ュ彛闆嗗悎
- * @method register 娉ㄥ唽
- * @method captcha 鑾峰彇楠岃瘉鐮�
  */
 
 import { http } from "@/utils/http";
 import { baseUrlApi } from "../util";
-type Result = {
-  success: boolean;
-  data: Array<any>;
-};
+import type { Result } from "../types";
 
 //涓婁紶鍜岃瘑鍒惀涓氭墽鐓�
 export const upBizLicense = (data?: object) => {
-  return http.request("post", baseUrlApi("/api/upFile/upBizLicense"), { data });
+  return http.request<Result>("post", baseUrlApi("/api/upFile/upBizLicense"), {
+    data
+  });
 };
 
-export const captcha = () => {
-  return http.request<Result>("get", baseUrlApi("/api/zCSMS/captcha"));
-};
-
-//鑾峰彇瑙掕壊
-export const exRole = () => {
-  return http.request<Result>("get", baseUrlApi("/api/customer/exRole"));
-};
-
-// 鑾峰彇鎵嬫満楠岃瘉鐮�
-export const phoneNumberCode = (params?: object) => {
-  return http.request(
-    "post",
-    baseUrlApi(
-      `/api/zCSMS/sendSMS/${params.phone}/${params.code}/${params.codeId}`
-    )
-  );
+// 涓婁紶韬唤璇�
+export const uploadIdCord = (params?: object) => {
+  return http.request<Result>("post", baseUrlApi("/api/upFile/uploadIdCord"), {
+    params
+  });
 };

--
Gitblit v1.9.1