From ef6fb5968914c3396d1e448c193459f0cc468618 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期五, 08 八月 2025 16:50:14 +0800
Subject: [PATCH] Merge branch 'master' of http://120.26.58.240:8888/r/flexJobMiniApp
---
packages/services/apiV2/auth.ts | 29 ++++++++++++++++++++++++++++-
1 files changed, 28 insertions(+), 1 deletions(-)
diff --git a/packages/services/apiV2/auth.ts b/packages/services/apiV2/auth.ts
index 543ccd0..f783319 100644
--- a/packages/services/apiV2/auth.ts
+++ b/packages/services/apiV2/auth.ts
@@ -53,7 +53,34 @@
/** 瀵嗙爜鐧诲綍 POST /api/user/auth/passwordLogin */
export async function passwordLogin(body: API.PasswordLoginCommand, options?: API.RequestConfig) {
- return request<API.PasswordLoginCommandCallback>('/api/user/auth/passwordLogin', {
+ return request<API.LoginCommandCallback>('/api/user/auth/passwordLogin', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json-patch+json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 鍙戦�佺櫥褰曟垨娉ㄥ唽鐭俊 POST /api/user/auth/sendLoginOrRegisterVerifyCode */
+export async function sendLoginOrRegisterVerifyCode(
+ body: API.SendLoginOrRegisterVerifyCodeCommand,
+ options?: API.RequestConfig
+) {
+ return request<string>('/api/user/auth/sendLoginOrRegisterVerifyCode', {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json-patch+json',
+ },
+ data: body,
+ ...(options || {}),
+ });
+}
+
+/** 鐭俊鐧诲綍 POST /api/user/auth/smsLogin */
+export async function smsLogin(body: API.SmsLoginCommand, options?: API.RequestConfig) {
+ return request<API.LoginCommandCallback>('/api/user/auth/smsLogin', {
method: 'POST',
headers: {
'Content-Type': 'application/json-patch+json',
--
Gitblit v1.9.1