From d71422ecb4e6a0c855e94e0416e4fc52387dec18 Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期五, 08 八月 2025 14:52:46 +0800
Subject: [PATCH] '关注项目'

---
 src/api/mine.ts |   23 ++++++++++++++++-------
 1 files changed, 16 insertions(+), 7 deletions(-)

diff --git a/src/api/mine.ts b/src/api/mine.ts
index 84ee178..459ba8d 100644
--- a/src/api/mine.ts
+++ b/src/api/mine.ts
@@ -7,17 +7,26 @@
 
 import { http } from "@/utils/http";
 import { baseUrlApi } from "./util";
-type Result = {
-  success: boolean;
-  data: Array<any>;
-};
-
+import type { Result } from "./types";
+import type { ResponseEnterprise } from "@/utils/auth";
 // 鑾峰彇涓汉涓績鏁版嵁
 export const cusExtendInfo = (data?: object) => {
-  return http.request("post", baseUrlApi("/api/customer/cusExtendInfo"), { data });
+  return http.request<ResponseEnterprise>(
+    "post",
+    baseUrlApi("/api/customer/cusExtendInfo"),
+    {
+      data
+    }
+  );
 };
 
 // 淇敼涓汉涓績鏁版嵁
 export const changeCusExtend = (data?: object) => {
-  return http.request("post", baseUrlApi("/api/customer/changeCusExtend"), { data });
+  return http.request<Result>(
+    "post",
+    baseUrlApi("/api/customer/changeCusExtend"),
+    {
+      data
+    }
+  );
 };

--
Gitblit v1.9.1