From 704a721f1ea9e3050be765afff0bb86dbc6bb603 Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期一, 11 八月 2025 10:42:43 +0800
Subject: [PATCH] 报红更改

---
 src/api/register/index.ts |   35 +++++++++++++++++++++++------------
 1 files changed, 23 insertions(+), 12 deletions(-)

diff --git a/src/api/register/index.ts b/src/api/register/index.ts
index 0c7e2a2..2611df4 100644
--- a/src/api/register/index.ts
+++ b/src/api/register/index.ts
@@ -8,13 +8,10 @@
 
 import { http } from "@/utils/http";
 import { baseUrlApi } from "../util";
-type Result = {
-  success: boolean;
-  data: Array<any>;
-};
+import type { Result, CaptchaResult } from "../types";
 
 export const register = (data?: object) => {
-  return http.request(
+  return http.request<Result>(
     "post",
     baseUrlApi("/api/customer/customerRegistration"),
     { data }
@@ -22,7 +19,7 @@
 };
 
 export const captcha = () => {
-  return http.request<Result>("get", baseUrlApi("/api/zCSMS/captcha"));
+  return http.request<CaptchaResult>("get", baseUrlApi("/api/zCSMS/captcha"));
 };
 
 //鑾峰彇瑙掕壊
@@ -31,8 +28,8 @@
 };
 
 // 鑾峰彇鎵嬫満楠岃瘉鐮�
-export const phoneNumberCode = (params?: object) => {
-  return http.request(
+export const phoneNumberCode = params => {
+  return http.request<Result>(
     "post",
     baseUrlApi(
       `/api/zCSMS/sendSMS/${params.phone}/${params.code}/${params.codeId}`
@@ -42,7 +39,16 @@
 
 // 娉ㄥ唽瑙掕壊鐢ㄦ埛璧勬枡
 export const createrExRolsInformation = (data?: object) => {
-  return http.request(
+  return http.request<Result>(
+    "post",
+    baseUrlApi("/api/customer/createrExRolsInformation"),
+    { data }
+  );
+};
+
+// 淇敼瑙掕壊鐢ㄦ埛璧勬枡
+export const createrExRolsInformation1 = (data?: object) => {
+  return http.request<Result>(
     "post",
     baseUrlApi("/api/customer/createrExRolsInformation"),
     { data }
@@ -51,7 +57,12 @@
 
 // 鑾峰彇浼佷笟绫诲瀷
 export const enterpriseTypes = (data?: object) => {
-  return http.request("post", baseUrlApi("/api/customer/enterpriseTypes"), {
-    data
-  });
+  return http.request<Result>(
+    "post",
+    baseUrlApi("/api/customer/enterpriseTypes"),
+    {
+      data
+    }
+  );
 };
+

--
Gitblit v1.9.1