From 5ec8805b2728d9b98383f2b2cdb3298ac3864286 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 11 八月 2025 17:46:12 +0800
Subject: [PATCH] feat: 接口

---
 src/services/api/auth.ts |   50 ++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 46 insertions(+), 4 deletions(-)

diff --git a/src/services/api/auth.ts b/src/services/api/auth.ts
index 00b5ddb..6c5340a 100644
--- a/src/services/api/auth.ts
+++ b/src/services/api/auth.ts
@@ -2,6 +2,21 @@
 // @ts-ignore
 import { request } from '@/utils/request';
 
+/** 缁戝畾鎵嬫満鍙� POST /api/user/auth/bindPhoneNumber */
+export async function bindPhoneNumber(
+  body: API.BindPhoneNumberCommand,
+  options?: API.RequestConfig
+) {
+  return request<boolean>('/api/user/auth/bindPhoneNumber', {
+    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榛樿娌℃湁鐢熸垚瀵硅薄)
@@ -53,7 +68,7 @@
 
 /** 瀵嗙爜鐧诲綍 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',
@@ -63,9 +78,36 @@
   });
 }
 
-/** 鍙戦�侀獙璇佺爜 POST /api/user/auth/sendVerifyCode */
-export async function sendVerifyCode(body: API.SendVerifyCodeCommand, options?: API.RequestConfig) {
-  return request<string>('/api/user/auth/sendVerifyCode', {
+/** 鍙戦�佺櫥褰曟垨娉ㄥ唽鐭俊 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',
+    },
+    data: body,
+    ...(options || {}),
+  });
+}
+
+/** 寰俊灏忕▼搴忕櫥褰� POST /api/user/auth/wxmpLogin */
+export async function wxmpLogin(body: API.WxmpLoginCommand, options?: API.RequestConfig) {
+  return request<API.LoginCommandCallback>('/api/user/auth/wxmpLogin', {
     method: 'POST',
     headers: {
       'Content-Type': 'application/json-patch+json',

--
Gitblit v1.9.1