From 9d7d85f93b9e0b752d79559f5caac31fd2f00c82 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期三, 31 十二月 2025 09:31:37 +0800
Subject: [PATCH] fix: bug
---
packages/services/apiV2/auth.ts | 49 ++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 48 insertions(+), 1 deletions(-)
diff --git a/packages/services/apiV2/auth.ts b/packages/services/apiV2/auth.ts
index 331a423..2cb1c46 100644
--- a/packages/services/apiV2/auth.ts
+++ b/packages/services/apiV2/auth.ts
@@ -32,6 +32,21 @@
});
}
+/** 閫夋嫨寰俊鎵嬫満鍙� POST /api/user/auth/chooseWxmpPhoneNumber */
+export async function chooseWxmpPhoneNumber(
+ body: API.ChooseWxmpPhoneNumberCommand,
+ options?: API.RequestConfig
+) {
+ return request<boolean>('/api/user/auth/chooseWxmpPhoneNumber', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json-patch+json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
/** 鑾峰彇闃块噷浜慜SS鎺堟潈淇℃伅 GET /api/user/auth/getAliyunOSSAcs */
export async function getAliyunOSSAcs(
// 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
@@ -81,6 +96,23 @@
});
}
+/** 鏌ヨ浼佷笟鐢ㄦ埛鐧诲綍淇℃伅 GET /api/user/auth/getEnterpriseLoginInfo */
+export async function getEnterpriseLoginInfo(
+ // 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
+ params: API.APIgetEnterpriseLoginInfoParams,
+ options?: API.RequestConfig
+) {
+ return request<API.GetEnterpriseLoginInfoQueryResult>('/api/user/auth/getEnterpriseLoginInfo', {
+ method: 'GET',
+ params: {
+ ...params,
+ request: undefined,
+ ...params['request'],
+ },
+ ...(options || {}),
+ });
+}
+
/** 鏌ヨ涓汉鐢ㄦ埛鐧诲綍淇℃伅 GET /api/user/auth/getPersonalLoginInfo */
export async function getPersonalLoginInfo(
// 鍙犲姞鐢熸垚鐨凱aram绫诲瀷 (闈瀊ody鍙傛暟swagger榛樿娌℃湁鐢熸垚瀵硅薄)
@@ -115,7 +147,7 @@
body: API.RegisterPersonalUserCommand,
options?: API.RequestConfig
) {
- return request<boolean>('/api/user/auth/registerPersonalUser', {
+ return request<API.LoginCommandCallback>('/api/user/auth/registerPersonalUser', {
method: 'POST',
headers: {
'Content-Type': 'application/json-patch+json',
@@ -152,6 +184,21 @@
});
}
+/** 瑙g粦寰俊灏忕▼搴忓揩鎹风櫥褰� POST /api/user/auth/unBindUserWxmpId */
+export async function unBindUserWxmpId(
+ body: API.UnBindUserWxmpIdCommand,
+ options?: API.RequestConfig
+) {
+ return request<string>('/api/user/auth/unBindUserWxmpId', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json-patch+json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
/** 鍙戦�佹洿鎹㈡墜鏈哄彿鐭俊 POST /api/user/auth/updatePhoneNumberVerifyCode */
export async function updatePhoneNumberVerifyCode(
body: API.UpdatePhoneNumberVerifyCodeCommand,
--
Gitblit v1.10.0