From 80edeb00ec5f9647b568a48503e63f485505aca8 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期五, 20 六月 2025 10:00:16 +0800
Subject: [PATCH] gx语音播报

---
 src/utils/httpApi.ts |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/src/utils/httpApi.ts b/src/utils/httpApi.ts
index d633a12..b2f1e18 100644
--- a/src/utils/httpApi.ts
+++ b/src/utils/httpApi.ts
@@ -29,4 +29,32 @@
         console.error('Error setting timeout alert:', error);
         throw error;
     }
+};
+
+export const sendValidateCode = async (requestData): Promise<ApiResponse> => {
+    try {
+        const response = await axios.post(`${apiBaseUrl}/user/info/sendValidateCodeForRegister`, requestData, {
+            headers: {
+                'Content-Type': 'application/x-www-form-urlencoded'
+            }
+        });
+        return response.data;
+    } catch (error) {
+        console.error('Error setting timeout alert:', error);
+        throw error;
+    }
+};
+
+export const registerForNutrition = async (requestData): Promise<ApiResponse> => {
+    try {
+        const response = await axios.post(`${apiBaseUrl}/user/info/registerForNutrition`, requestData, {
+            headers: {
+                'Content-Type': 'application/json'
+            }
+        });
+        return response.data;
+    } catch (error) {
+        console.error('Error setting timeout alert:', error);
+        throw error;
+    }
 };
\ No newline at end of file

--
Gitblit v1.8.0