From 73210a869048d6468b55717660d0ca558d0c2aab Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期一, 24 十一月 2025 09:49:43 +0800
Subject: [PATCH] 优化

---
 service/common.ts |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/service/common.ts b/service/common.ts
index 5910965..a2f942e 100644
--- a/service/common.ts
+++ b/service/common.ts
@@ -73,6 +73,10 @@
   return get<SetupStatusResponse>('/setup')
 }
 
+export const regAndLogin: Fetcher<CommonResponse, { body: Record<string, any> }> = ({ body }) => {
+  return post<CommonResponse>('/regAndLogin', { body })
+}
+
 export const fetchUserProfile: Fetcher<UserProfileOriginResponse, { url: string; params: Record<string, any> }> = ({ url, params }) => {
   return get<UserProfileOriginResponse>(url, params, { needAllResponseContent: true })
 }

--
Gitblit v1.8.0